From patchwork Thu Sep 15 15:03:35 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Potapenko X-Patchwork-Id: 12977519 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 D686BC6FA89 for ; Thu, 15 Sep 2022 15:04:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2A4528D0002; Thu, 15 Sep 2022 11:04:43 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 253B76B0075; Thu, 15 Sep 2022 11:04:43 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0F5908D0002; Thu, 15 Sep 2022 11:04:43 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 020336B0074 for ; Thu, 15 Sep 2022 11:04:43 -0400 (EDT) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id D329BC0124 for ; Thu, 15 Sep 2022 15:04:42 +0000 (UTC) X-FDA: 79914641604.19.9D8B88F Received: from mail-ed1-f73.google.com (mail-ed1-f73.google.com [209.85.208.73]) by imf31.hostedemail.com (Postfix) with ESMTP id 5D285200C7 for ; Thu, 15 Sep 2022 15:04:41 +0000 (UTC) Received: by mail-ed1-f73.google.com with SMTP id dz21-20020a0564021d5500b0045217702048so7866340edb.5 for ; Thu, 15 Sep 2022 08:04:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date; bh=H32LKJ4QtRE8PW83scu/rnCN+O5l16ld3Egd+3MOYzM=; b=Z7D99KP/7kWnl5znToFpIf1yzLMq5Rl3cXYi/b07RUB4TDuaBOLLDYgebb40CGKG1L 1zCtTBptLWIIE71BCILie+2r2YL30vZTv1M14oRjoZ84j37Qthbws8lENFDUTapFncHJ GMI/2NU3SzeX/kyx6KcZupV7AUQ3Ko6hrXIbFcW2S2DctuOcOUUhJU0Oim0IOCNK3Slv Et5wtGOTIMIY7gHgozwd25lD6l/zq9vpBHfdJEacezGicwlEFZgMQl9USowxIbe0UN9j WdCBEXFJTDUn1l0slw3ikke8yuPA7OPiHXDy0H4dUNtcUVd45sUoy/2pJE+/EkYb0XKl u/lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date; bh=H32LKJ4QtRE8PW83scu/rnCN+O5l16ld3Egd+3MOYzM=; b=fUrpAaFsnU/GHk5/Enq3MSLwipXNAIBAB+VFyUN8eUCEATG49/ZiatPiEycFIkeNEd 85zsa0FFSULUg7UAv/F7tKx+7zEGdDWbV/Unjep2fqOf6etuXgcWduGmdKwk0GDn87TB XwHaFfRDXYVBCRR5FwFCc+LZv8i1Djm9MvtST4awR7f36rGSi0+EfAeCip9OPtjDUrNY 5vYcn3IEsctAMGO7/CZaVmiRQrzZVe3EzV1xDUh4BRXwRAqthsvwOoPjmNFJrTuk7cyK nU/hFXfdcDohtIz5KkYrzazE4qrVxnyhArPuR3mYwlWZNDr102aa6NS1mTqZp7j2rZsQ 4+uA== X-Gm-Message-State: ACrzQf1roy4k4fHmh6JIFtwy2tlDuZSDvhirmzVcrSCbcL5JGYfDGg9y Jveg/tgi386of5nXcfLgBvW0tUyr9vM= X-Google-Smtp-Source: AMsMyM5VSJ+y4oAY1cflJUKFEYKa2sNeJCpwHsdxCsIQ76K48TJwXnK+HBA3EP0jw8zgl0gp6zWhdtm0Ih0= X-Received: from glider.muc.corp.google.com ([2a00:79e0:9c:201:686d:27b5:495:85b7]) (user=glider job=sendgmr) by 2002:a05:6402:5406:b0:452:1560:f9d4 with SMTP id ev6-20020a056402540600b004521560f9d4mr246547edb.333.1663254280120; Thu, 15 Sep 2022 08:04:40 -0700 (PDT) Date: Thu, 15 Sep 2022 17:03:35 +0200 In-Reply-To: <20220915150417.722975-1-glider@google.com> Mime-Version: 1.0 References: <20220915150417.722975-1-glider@google.com> X-Mailer: git-send-email 2.37.2.789.g6183377224-goog Message-ID: <20220915150417.722975-2-glider@google.com> Subject: [PATCH v7 01/43] 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 Biggers , 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 , Stephen Rothwell , 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-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1663254281; a=rsa-sha256; cv=none; b=O+Oeb8acM/C2q83S8S/nZQf0H+sRT79IblNlg6fw+Hw9h/kAtoj+R66Bp70tEHCHuyJ350 CbaUzCVE2/Qr9V1J4Epci8vljdzllgzPN33DQQf7eoCqVN3ehVyvrKjjr6trKKqhWtFQPo sqCzXtGvV1ocvTR2RxRlfav+UcEXrKw= ARC-Authentication-Results: i=1; imf31.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b="Z7D99KP/"; spf=pass (imf31.hostedemail.com: domain of 3CD8jYwYKCDMVaXSTgVddVaT.RdbaXcjm-bbZkPRZ.dgV@flex--glider.bounces.google.com designates 209.85.208.73 as permitted sender) smtp.mailfrom=3CD8jYwYKCDMVaXSTgVddVaT.RdbaXcjm-bbZkPRZ.dgV@flex--glider.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1663254281; 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=H32LKJ4QtRE8PW83scu/rnCN+O5l16ld3Egd+3MOYzM=; b=XKenXb+T+HIGI/3HGYc6voIME9blpb+eNTFApEAFI9k1/bnqv//4Nhdjfr3Q2Xmk1co5KQ bPUU8AOqmDwUbpVALrRvYQ1HphU6PNjKbObADh51GvKl+jRkBU8Y2oIMoGOCo3LQ/neRZR GlZhHy6Z83wcxgOtcJQJXm1uSMXofvg= Authentication-Results: imf31.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b="Z7D99KP/"; spf=pass (imf31.hostedemail.com: domain of 3CD8jYwYKCDMVaXSTgVddVaT.RdbaXcjm-bbZkPRZ.dgV@flex--glider.bounces.google.com designates 209.85.208.73 as permitted sender) smtp.mailfrom=3CD8jYwYKCDMVaXSTgVddVaT.RdbaXcjm-bbZkPRZ.dgV@flex--glider.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: u4mjc1t3uqtpbdj7o4yr3fp9cpj8jg47 X-Rspamd-Queue-Id: 5D285200C7 X-HE-Tag: 1663254281-248678 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: