From patchwork Tue Dec 14 16:20:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Potapenko X-Patchwork-Id: 12676323 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 878A1C433F5 for ; Tue, 14 Dec 2021 16:22:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 154D86B0075; Tue, 14 Dec 2021 11:22:08 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 1295A6B007B; Tue, 14 Dec 2021 11:22:08 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EF57F6B0078; Tue, 14 Dec 2021 11:22:07 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0204.hostedemail.com [216.40.44.204]) by kanga.kvack.org (Postfix) with ESMTP id DA2DE6B0073 for ; Tue, 14 Dec 2021 11:22:07 -0500 (EST) Received: from smtpin09.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 94B8D82499B9 for ; Tue, 14 Dec 2021 16:21:57 +0000 (UTC) X-FDA: 78916916274.09.0202607 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) by imf21.hostedemail.com (Postfix) with ESMTP id 102B01C000D for ; Tue, 14 Dec 2021 16:21:54 +0000 (UTC) Received: by mail-wm1-f74.google.com with SMTP id n41-20020a05600c502900b003335ab97f41so8134917wmr.3 for ; Tue, 14 Dec 2021 08:21:57 -0800 (PST) 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=FXfeBchMfCdhuWi7P/c/cIQefpZCnVfOT656QFTkr+0=; b=rq4gED9OFGTopBP/h6U7GjMpe16CAVeGeHHMWF1VLMCL/cqIp/qiPpx4glUgvShgk1 EkSX9gp/VQNQU3SylYvaqYyMvibQHhBg5sdPlaVPzR9GUxJfz4sDC+eO4p8B0yV/EnG5 Q+LNLpcH58pH4zk/c181fED98u9j5txn3fFQrK5ARbC8kqPipeyptURB3RM/buoMHqua FrMvA+lEKucUHpWMNVWnqCh04HOhsUbN3S6yMJKEOl7kBKEyHO5xY3Q8cJtNiUGbu4X9 A6IQPDzxqIHzfa4rqaT8/nrZwD0lbINSsPAPp21LEr6Mleh7u7KaI/iVQ1abzcblJfJ1 2CTg== 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=FXfeBchMfCdhuWi7P/c/cIQefpZCnVfOT656QFTkr+0=; b=c9LiwNicAndGcFipMG6phjQ/i4+tPC2yXTbucrHx40rEAmnuhCFnyTwfcS1hXPeVH8 Kt2FLnXPtJO1Zp718v05ylkq3NfR9y9r0PI7jWwKNGYIYYQoOxMZbrarsSgpWQBFCnqc XsgWVEBWGn74xwL7xo6s5YckkuzGufTmBlk97uWElg4xJCnIOjingFuz4OR7/tc4RYti DUHI045eEVZY/99W7vaT5nB78N6gNoQmVysQIYgy0Aij5IYSfO64AhTgkgJmJUn47aHV IeNL6mrjTBHsMbmD/eL0cHU5ibzden1GLoFewHqFYJp0GYCNGbJ5yZycrrQKDlAWWMIr SukA== X-Gm-Message-State: AOAM532u+RlfVuER14se80B8TshU5NIjKnY4xy7z6+21J1yNulzSpZ6j 3M+3u6jy6zW4ZtOE90Ysz1+Kw38dReI= X-Google-Smtp-Source: ABdhPJy4QNvRmDfM0eG011hD4RxNjSwaKd4qO7sKL/WYj9gWuHMNHmlS9FUP/lJt7VznT2PlfxW/ubfArUA= X-Received: from glider.muc.corp.google.com ([2a00:79e0:15:13:357e:2b9d:5b13:a652]) (user=glider job=sendgmr) by 2002:a1c:4c04:: with SMTP id z4mr8271378wmf.11.1639498915988; Tue, 14 Dec 2021 08:21:55 -0800 (PST) Date: Tue, 14 Dec 2021 17:20:08 +0100 In-Reply-To: <20211214162050.660953-1-glider@google.com> Message-Id: <20211214162050.660953-2-glider@google.com> Mime-Version: 1.0 References: <20211214162050.660953-1-glider@google.com> X-Mailer: git-send-email 2.34.1.173.g76aa8bc2d0-goog Subject: [PATCH 01/43] arch/x86: add missing include to sparsemem.h From: Alexander Potapenko To: glider@google.com Cc: Alexander Viro , Andrew Morton , Andrey Konovalov , Andy Lutomirski , Ard Biesheuvel , 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 , Matthew Wilcox , "Michael S. Tsirkin" , Pekka Enberg , Peter Zijlstra , Petr Mladek , Steven Rostedt , Thomas Gleixner , Vasily Gorbik , Vegard Nossum , Vlastimil Babka , linux-mm@kvack.org, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 102B01C000D X-Stat-Signature: 1f59c63uumx4pp18zgagsjtzxh76pfgc Authentication-Results: imf21.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=rq4gED9O; spf=pass (imf21.hostedemail.com: domain of 3o8S4YQYKCCQGLIDERGOOGLE.COMLINUX-MMKVACK.ORG@flex--glider.bounces.google.com designates 209.85.128.74 as permitted sender) smtp.mailfrom=3o8S4YQYKCCQGLIDERGOOGLE.COMLINUX-MMKVACK.ORG@flex--glider.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com X-HE-Tag: 1639498914-774087 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 Somehow all existing inclusions of sparsemem.h are preceded by inclusion of , but KMSAN contains code that transitively includes sparsemem.h without that header, resulting in a compilation error: 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); ^ Because sparsemem.h does actually use phys_addr_t and u64, include types.h explicitly. Signed-off-by: Dmitry Vyukov --- 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: