From patchwork Fri Jul 1 14:22:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Potapenko X-Patchwork-Id: 12903358 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E8002C43334 for ; Fri, 1 Jul 2022 14:23:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7A7EC6B0073; Fri, 1 Jul 2022 10:23:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 756AF6B0074; Fri, 1 Jul 2022 10:23:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5F9656B0075; Fri, 1 Jul 2022 10:23:21 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id 511E96B0073 for ; Fri, 1 Jul 2022 10:23:21 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 1F0682165C for ; Fri, 1 Jul 2022 14:23:21 +0000 (UTC) X-FDA: 79638748602.10.EB79AE8 Received: from mail-lf1-f73.google.com (mail-lf1-f73.google.com [209.85.167.73]) by imf02.hostedemail.com (Postfix) with ESMTP id BD57080051 for ; Fri, 1 Jul 2022 14:23:20 +0000 (UTC) Received: by mail-lf1-f73.google.com with SMTP id bq4-20020a056512150400b0047f7f36efc6so1167728lfb.9 for ; Fri, 01 Jul 2022 07:23:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=/yIHROt1QYP0boO+vuzmQ126QU/rx8ZuEvPrfW89F9Y=; b=RMeY6Ur3ouU5biN/Uz6Pi1vECHINkdUQ1XcdDhpxam1K7Tmx2sZMlF9fAiiBGiDeb0 U7Aa8QqJ+VzQP8OpEO/pKz35Tdfyk3WWhmM4pgL6mDH0PoavMplCXSLjU0240DaBpzjO QbDGael0DJV5cJgd2vGBzYz8gomx8CJ50pgg+tLhgpdbZUtX5ayyxuW6RmdLsX6TBH+C o0DtNWdueVL830o3hq+mgXMzlCK2+/F+OKqDr/zxODRC5vpVa5UwODat1/WfKYe86OhU lS0UhtJlWn+ziWveaLeyRQpu/EtFNlZ1zDnOV0otO8OsP7edPw4pO0p+qmnwXROxdlBV mvtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=/yIHROt1QYP0boO+vuzmQ126QU/rx8ZuEvPrfW89F9Y=; b=wpBCEJbIM9wsh3y/GcAv+u5NQQW3jG3wEabY1rp3FiPcEan0LxDG+cS5F3ZHx9SuXa Zba6Uy3O/SxFloafS9W89Y5ixXeLX6Vs8UC8f2ZqDXomwlhLLEARSplyQruohuYU8k0Z enw/fgBORpQW544NjXfbnk8RW+loP1t0MObIycq87c+RTdoVTM+F/Y01RD8W2peKs+wR athzFPJLc3vYMJ81vTzjjUSAZJmc18/hB3++V3pROVQh7euWzn0thg2yyFQUGcmY1wjt Xe/ByePMHGYCpSGFrwZmn3tWEhuWs4h0lliqIzlRYydhhQ0BwYzW0coVWW80r/fdgcFG CQ4A== X-Gm-Message-State: AJIora9yCXdAnPJl9w3lLJBNQuF1aQWMxRS/Iq7r7rkVdIErmF4qUX0O uEhWvOzqA9OBGfYeoqsAa/B9yX+lZW4= X-Google-Smtp-Source: AGRyM1uD+3Ia18lHCKIGMfEeSdvCpSjDt0Xq3SAkrsJ1OFDc0LZZ0ntvnmsmvOrkKwNT5g2Svgk1nfZ8tIw= X-Received: from glider.muc.corp.google.com ([2a00:79e0:9c:201:a6f5:f713:759c:abb6]) (user=glider job=sendgmr) by 2002:a05:6512:1588:b0:481:1a00:4f10 with SMTP id bp8-20020a056512158800b004811a004f10mr9629583lfb.435.1656685398820; Fri, 01 Jul 2022 07:23:18 -0700 (PDT) Date: Fri, 1 Jul 2022 16:22:26 +0200 In-Reply-To: <20220701142310.2188015-1-glider@google.com> Message-Id: <20220701142310.2188015-2-glider@google.com> Mime-Version: 1.0 References: <20220701142310.2188015-1-glider@google.com> X-Mailer: git-send-email 2.37.0.rc0.161.g10f37bed90-goog Subject: [PATCH v4 01/45] x86: add missing include to sparsemem.h From: Alexander Potapenko To: glider@google.com Cc: Alexander Viro , Alexei Starovoitov , Andrew Morton , Andrey Konovalov , Andy Lutomirski , Arnd Bergmann , Borislav Petkov , Christoph Hellwig , Christoph Lameter , David Rientjes , Dmitry Vyukov , Eric Dumazet , Greg Kroah-Hartman , Herbert Xu , Ilya Leoshkevich , Ingo Molnar , Jens Axboe , Joonsoo Kim , Kees Cook , Marco Elver , Mark Rutland , Matthew Wilcox , "Michael S. Tsirkin" , Pekka Enberg , Peter Zijlstra , Petr Mladek , Steven Rostedt , Thomas Gleixner , Vasily Gorbik , Vegard Nossum , Vlastimil Babka , kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org ARC-Authentication-Results: i=1; imf02.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=RMeY6Ur3; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf02.hostedemail.com: domain of 3VgO_YgYKCHUZebWXkZhhZeX.Vhfebgnq-ffdoTVd.hkZ@flex--glider.bounces.google.com designates 209.85.167.73 as permitted sender) smtp.mailfrom=3VgO_YgYKCHUZebWXkZhhZeX.Vhfebgnq-ffdoTVd.hkZ@flex--glider.bounces.google.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1656685400; a=rsa-sha256; cv=none; b=Nbq4TvODE/t8E84dES955LIis7kTbulsoBAQX1XZ9ZmMqagc5VvlvOfUFXRSvYO/eSVxpH ghr2Z+Pe39HyivekkgCAyRF0ZDeoTzQzY4Vq5yTX6xTbObtUndjAwLID3CvibemLUQoDN+ Tgr88shIXtT/rnP4H/FVjPMX2Ihb6OM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1656685400; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=/yIHROt1QYP0boO+vuzmQ126QU/rx8ZuEvPrfW89F9Y=; b=QQK8UxIyg0F/pOhRZP3DPNsu7YeMX7Bqqa2uIFll4NukpcvVdNAdCkxmrIDvfkYRYNCwxO q8VOwZXOsaPEQF5gV56DZLMpVH/nn+dEJN81ab+gtKc3WwD8vzTheAOY192jGJzZsCk4vP LQ3A1ZVbiajwJGPanxpSrSNcY8fbL1Q= X-Stat-Signature: u9fy84tig45ko8ocyp51msdfa1trikjs X-Rspamd-Queue-Id: BD57080051 Authentication-Results: imf02.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=RMeY6Ur3; dmarc=pass (policy=reject) header.from=google.com; spf=pass (imf02.hostedemail.com: domain of 3VgO_YgYKCHUZebWXkZhhZeX.Vhfebgnq-ffdoTVd.hkZ@flex--glider.bounces.google.com designates 209.85.167.73 as permitted sender) smtp.mailfrom=3VgO_YgYKCHUZebWXkZhhZeX.Vhfebgnq-ffdoTVd.hkZ@flex--glider.bounces.google.com X-Rspam-User: X-Rspamd-Server: rspam11 X-HE-Tag: 1656685400-526176 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: From: Dmitry Vyukov Including sparsemem.h from other files (e.g. transitively via asm/pgtable_64_types.h) results in compilation errors due to unknown types: sparsemem.h:34:32: error: unknown type name 'phys_addr_t' extern int phys_to_target_node(phys_addr_t start); ^ sparsemem.h:36:39: error: unknown type name 'u64' extern int memory_add_physaddr_to_nid(u64 start); ^ Fix these errors by including linux/types.h from sparsemem.h This is required for the upcoming KMSAN patches. Signed-off-by: Dmitry Vyukov Signed-off-by: Alexander Potapenko --- Link: https://linux-review.googlesource.com/id/Ifae221ce85d870d8f8d17173bd44d5cf9be2950f --- arch/x86/include/asm/sparsemem.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/x86/include/asm/sparsemem.h b/arch/x86/include/asm/sparsemem.h index 6a9ccc1b2be5d..64df897c0ee30 100644 --- a/arch/x86/include/asm/sparsemem.h +++ b/arch/x86/include/asm/sparsemem.h @@ -2,6 +2,8 @@ #ifndef _ASM_X86_SPARSEMEM_H #define _ASM_X86_SPARSEMEM_H +#include + #ifdef CONFIG_SPARSEMEM /* * generic non-linear memory support: