From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1395EC433ED for ; Thu, 20 May 2021 08:49:17 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id B7A9761244 for ; Thu, 20 May 2021 08:49:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B7A9761244 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=techsingularity.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 5A1F56B0092; Thu, 20 May 2021 04:49:16 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5789D8D0001; Thu, 20 May 2021 04:49:16 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 4449F6B0095; Thu, 20 May 2021 04:49:16 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0191.hostedemail.com [216.40.44.191]) by kanga.kvack.org (Postfix) with ESMTP id 153F36B0092 for ; Thu, 20 May 2021 04:49:16 -0400 (EDT) Received: from smtpin17.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id B013B8248076 for ; Thu, 20 May 2021 08:49:15 +0000 (UTC) X-FDA: 78160985070.17.4200B71 Received: from outbound-smtp27.blacknight.com (outbound-smtp27.blacknight.com [81.17.249.195]) by imf23.hostedemail.com (Postfix) with ESMTP id C3316A0009EB for ; Thu, 20 May 2021 08:49:13 +0000 (UTC) Received: from mail.blacknight.com (pemlinmail03.blacknight.ie [81.17.254.16]) by outbound-smtp27.blacknight.com (Postfix) with ESMTPS id DC669CACDA for ; Thu, 20 May 2021 09:49:13 +0100 (IST) Received: (qmail 5792 invoked from network); 20 May 2021 08:49:13 -0000 Received: from unknown (HELO stampy.112glenside.lan) (mgorman@techsingularity.net@[84.203.23.168]) by 81.17.254.9 with ESMTPA; 20 May 2021 08:49:13 -0000 From: Mel Gorman To: Andrew Morton Cc: Michal Hocko , David Hildenbrand , Vlastimil Babka , Dan Streetman , Yang Shi , Linux-MM , LKML , Mel Gorman Subject: [PATCH 05/14] mm/early_ioremap: Add prototype for early_memremap_pgprot_adjust Date: Thu, 20 May 2021 09:48:00 +0100 Message-Id: <20210520084809.8576-6-mgorman@techsingularity.net> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20210520084809.8576-1-mgorman@techsingularity.net> References: <20210520084809.8576-1-mgorman@techsingularity.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Rspamd-Queue-Id: C3316A0009EB Authentication-Results: imf23.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf23.hostedemail.com: domain of mgorman@techsingularity.net designates 81.17.249.195 as permitted sender) smtp.mailfrom=mgorman@techsingularity.net X-Rspamd-Server: rspam04 X-Stat-Signature: kmwtubzje48mhe4uyjnxx46hbg7bi17m X-HE-Tag: 1621500553-302300 Content-Transfer-Encoding: quoted-printable 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: make W=3D1 generates the following warning for mm/early_ioremap.c mm/early_ioremap.c:34:24: warning: no previous prototype for =E2=80=98ear= ly_memremap_pgprot_adjust=E2=80=99 [-Wmissing-prototypes] pgprot_t __init __weak early_memremap_pgprot_adjust(resource_size_t phys= _addr, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ The weak functions that can be overridden by architectures are declared in include/asm-generic/early_ioremap.h so add the prototype there. The asm/fixmap.h header is need for pgprot_t. Signed-off-by: Mel Gorman --- include/asm-generic/early_ioremap.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/asm-generic/early_ioremap.h b/include/asm-generic/ea= rly_ioremap.h index 9def22e6e2b3..022f8f908b42 100644 --- a/include/asm-generic/early_ioremap.h +++ b/include/asm-generic/early_ioremap.h @@ -3,6 +3,7 @@ #define _ASM_EARLY_IOREMAP_H_ =20 #include +#include =20 /* * early_ioremap() and early_iounmap() are for temporary early boot-time @@ -19,6 +20,14 @@ extern void *early_memremap_prot(resource_size_t phys_= addr, extern void early_iounmap(void __iomem *addr, unsigned long size); extern void early_memunmap(void *addr, unsigned long size); =20 +/* + * Weak function called by early_memremap and early_memremap_ro. It does + * nothing, but architectures may provide their own version to handle + * memory encryption. + */ +extern pgprot_t early_memremap_pgprot_adjust(resource_size_t phys_addr, + unsigned long size, pgprot_t prot); + /* * Weak function called by early_ioremap_reset(). It does nothing, but * architectures may provide their own version to do any needed cleanups= . --=20 2.26.2