From nobody Mon Apr 6 18:41:40 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A021FC54EE9 for ; Mon, 5 Sep 2022 12:25:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237433AbiIEMZO (ORCPT ); Mon, 5 Sep 2022 08:25:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56752 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237516AbiIEMZC (ORCPT ); Mon, 5 Sep 2022 08:25:02 -0400 Received: from mail-ej1-x64a.google.com (mail-ej1-x64a.google.com [IPv6:2a00:1450:4864:20::64a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B79A183A8 for ; Mon, 5 Sep 2022 05:25:01 -0700 (PDT) Received: by mail-ej1-x64a.google.com with SMTP id nc21-20020a1709071c1500b0076120d57502so757942ejc.18 for ; Mon, 05 Sep 2022 05:25:01 -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=aLfolEGF+4z8StWe09PixkRhroqvOPaKUooAdeTFsdKSl+v49Odm5vs4CnLK4fsq4S Jq/AR2w90iO6+0l+zBekr5ajfLWj2kU/XP1ultUmMcjL/ul1CQk62zeHwEWlR5EaPCy6 xtEK7vi/KQ6RS+ZuXFb9epBPjB1wW1c7oIClJGqTZzAROZRQOKU79SXsmYSjjrE2ztj1 zJTmRhJindsP0wNuL26Hs/hUR3y7PcifrgmpFh6HPlZKRzPQOtdWukP1Dh9II1PAI949 igQPGgi38AzhhZXpXIUCQqjOqv7RyRkj6cvRWjsdhzpIjgyg29OzL21jiUcjEweBFcPc OORg== 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=OJ5efE4JZyD2+C83V/bbDf9IuTVul5CIF/wrhGgIVoAa9Mlx4grhJxN/MbxP2a5i7l iV6Y6rsz2j+TODQGwxc2ds0Og2tmMtapMI6k9NBFVI62KYu/mivxhWTp9oh7fshAE3vE DapcmT+98/5yiwKAkmLIvD0+FL6Grr+tXbeSZ4uil459K/tiGt0v1ItqlTe8t1Q7jp+S /bECgnr4kypAq4JmaVnfu8PC8xf7pRLBJlNGYAQfiVuJbsg9S3Q9KggqjXu0E/tJBW9F FfvZWNfvPOglVKPj3noD9ENRzXtr8L1jqX4PAEp32vt86WOAOfSOhdPDTOe5j3/gROvZ ekMg== X-Gm-Message-State: ACgBeo1xWTadS2UfdWdBevX/uZ/Sn0l3CuAj1IHRaTYr3WfzqpifLJ4W K8AF4fPVy8Ar3KTGyAgLFPrStXIgsTM= X-Google-Smtp-Source: AA6agR5vWoTcukwzW12FJUqSgHwZUEspZmnu3gOZAV6odx1vq7y7ZtPkLoi8mVSYWK1T4yJjFIX66KC09ZU= X-Received: from glider.muc.corp.google.com ([2a00:79e0:9c:201:b808:8d07:ab4a:554c]) (user=glider job=sendgmr) by 2002:aa7:c556:0:b0:44e:9c95:a9a4 with SMTP id s22-20020aa7c556000000b0044e9c95a9a4mr2284696edr.301.1662380699688; Mon, 05 Sep 2022 05:24:59 -0700 (PDT) Date: Mon, 5 Sep 2022 14:24:09 +0200 In-Reply-To: <20220905122452.2258262-1-glider@google.com> Mime-Version: 1.0 References: <20220905122452.2258262-1-glider@google.com> X-Mailer: git-send-email 2.37.2.789.g6183377224-goog Message-ID: <20220905122452.2258262-2-glider@google.com> Subject: [PATCH v6 01/44] 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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/Ifae221ce85d870d8f8d17173bd4= 4d5cf9be2950f --- 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/sparse= mem.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 =20 +#include + #ifdef CONFIG_SPARSEMEM /* * generic non-linear memory support: --=20 2.37.2.789.g6183377224-goog