From patchwork Fri Aug 26 15:07:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Potapenko X-Patchwork-Id: 12956174 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 55119ECAAD5 for ; Fri, 26 Aug 2022 15:08:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E4F77940009; Fri, 26 Aug 2022 11:08:17 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E09B7940007; Fri, 26 Aug 2022 11:08:17 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C2BB2940009; Fri, 26 Aug 2022 11:08:17 -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 B0AB0940007 for ; Fri, 26 Aug 2022 11:08:17 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 8DD61120F4B for ; Fri, 26 Aug 2022 15:08:17 +0000 (UTC) X-FDA: 79842074634.21.BE3AA26 Received: from mail-ej1-f73.google.com (mail-ej1-f73.google.com [209.85.218.73]) by imf22.hostedemail.com (Postfix) with ESMTP id 2F38BC002D for ; Fri, 26 Aug 2022 15:08:17 +0000 (UTC) Received: by mail-ej1-f73.google.com with SMTP id ho13-20020a1709070e8d00b00730a655e173so720491ejc.8 for ; Fri, 26 Aug 2022 08:08:16 -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; bh=J3VjO5owb76kN3paB0OLHywjIHrYCcgYmjupWIyAPgw=; b=aCsHGgV2sJxTYt+AJn+GIymUxqtSkf7JOSyz7vtwxv7vS0L3uEaVpG7DpI3UZFn7Rf D7zIWrIK46DZU/rRMq3m92P1QW307EPb+BIJOkzmXqQ8PCl2pATj4E2Z1WkltcOGRGH6 X4s+ctoBmXCp+cOHvURIAa7E0w3KL/dAIMuJ3L8QZdm/NfQUl1dcR/AaILFXFY/SbQCL 36XR8pcZkoIw/0JS2OLp31Xw05XYV+OvrpL2omMECtGFmMj4DIIeOo98maVmQrFF8Xkl zgX7H+3jSLRXR+rJBrs8fyG/5arariUD9UxBlfK0i9oPhMg0ntqpE7GJ0QJEkhQTjoVw jDPQ== 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; bh=J3VjO5owb76kN3paB0OLHywjIHrYCcgYmjupWIyAPgw=; b=NTmjqlmnaH7NQVML8p2DMLTY6UUX5bGnOZ+uYZjHdBfi1qd8lOTgVi1HrWw3lbfLdE 5OtMzngwmUdvJf1Huw+gHxFmn9+1i4YrH6WbXfxdqQMjHOkEZdKaBkPXbOZjxJV6BEtC 116zpOwKy8HlG4styvNcqEBXdXkZ/iQJabRiP4zBQDZpicEmXSCCCk/P2NO4cARSeGS2 c9s8dL/iwj8tf31HBM23dnCRRsWr4kuGatf+JnxpfAJemysRRVNuQL6jtklSso+r7Lzh PVAZtcAr203GIiq7+N8Up0ezapTgXMLR6l45LT9tB/3+bZ+2LzkRYjFVWdZhXYwwITVk f+AA== X-Gm-Message-State: ACgBeo1VvB4fVAy/fvTVqUw0KeJDwCNG+S7eht7DTM36eV7NpZB+mrBz Nea+DTC2MqQi+sBo3Qo93uQ3DyRY+MA= X-Google-Smtp-Source: AA6agR6nNKRDoPy16VFGdamdWo+M+pvpnHCU2sYnAni0z8NRtgZc0jeuf/gSF+/K7FUxMeTnWWm/3XJf1sI= X-Received: from glider.muc.corp.google.com ([2a00:79e0:9c:201:5207:ac36:fdd3:502d]) (user=glider job=sendgmr) by 2002:aa7:c611:0:b0:447:844d:e5a2 with SMTP id h17-20020aa7c611000000b00447844de5a2mr7350187edq.10.1661526495846; Fri, 26 Aug 2022 08:08:15 -0700 (PDT) Date: Fri, 26 Aug 2022 17:07:24 +0200 In-Reply-To: <20220826150807.723137-1-glider@google.com> Mime-Version: 1.0 References: <20220826150807.723137-1-glider@google.com> X-Mailer: git-send-email 2.37.2.672.g94769d06f0-goog Message-ID: <20220826150807.723137-2-glider@google.com> Subject: [PATCH v5 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 ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1661526497; a=rsa-sha256; cv=none; b=jErZaHiKezvwNX9v1ffh8V9cckFE5IdwbM1RTZEHRrGAFteH7rsA8eOwvzcLv03aTG4Wft 01aaTuDNx13rphjt0Vw3Wk4D7OctrJ5J2ow8z5+ddH2BLnwmikYBN3ghA/sKABwgetcFzi +vPwz5W20Nh4MFFI7j3tyyyzEz5R2Aw= ARC-Authentication-Results: i=1; imf22.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=aCsHGgV2; spf=pass (imf22.hostedemail.com: domain of 33-EIYwYKCOQMROJKXMUUMRK.IUSROTad-SSQbGIQ.UXM@flex--glider.bounces.google.com designates 209.85.218.73 as permitted sender) smtp.mailfrom=33-EIYwYKCOQMROJKXMUUMRK.IUSROTad-SSQbGIQ.UXM@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=1661526497; 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=J3VjO5owb76kN3paB0OLHywjIHrYCcgYmjupWIyAPgw=; b=F6kN1dqd+IvNDy0RgmEzmo3YBabquhTkfgIhtjAOMLX6hVBKJPEH+jY95T9SX+wQs40E/3 Y1aE6Rjs4hFITQz1m0xRkExaTn4WtIHt5+W0R/TZSGaw9DZOm4kSOp7Ycl+zSIyBMOIpaP RPiBR6i0HeYF5jI/YJ46fgqXsKNkcss= X-Rspam-User: Authentication-Results: imf22.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=aCsHGgV2; spf=pass (imf22.hostedemail.com: domain of 33-EIYwYKCOQMROJKXMUUMRK.IUSROTad-SSQbGIQ.UXM@flex--glider.bounces.google.com designates 209.85.218.73 as permitted sender) smtp.mailfrom=33-EIYwYKCOQMROJKXMUUMRK.IUSROTad-SSQbGIQ.UXM@flex--glider.bounces.google.com; dmarc=pass (policy=reject) header.from=google.com X-Rspamd-Server: rspam08 X-Stat-Signature: ua9qrkk5r18rszqmqbjezstey8qj9f58 X-Rspamd-Queue-Id: 2F38BC002D X-HE-Tag: 1661526497-149962 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: