Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp207039pxj; Thu, 20 May 2021 07:40:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzT9tin9KPg3rI+C3IlTC6hQfwjwoTNn4IeLhTzEZZKAUKrOFgJjbRUrde/0cNJVgF+aF1 X-Received: by 2002:a17:906:b6c5:: with SMTP id ec5mr5096200ejb.290.1621521605959; Thu, 20 May 2021 07:40:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621521605; cv=none; d=google.com; s=arc-20160816; b=Ft63tv2n35hUwyE7Ic65cqlw9+qhJznqIoGx39He9St6Nt5uGNyGaheqoyTlsDZYq8 heo+s96A1MSCuHqPTzxhiEz09vbHAtDwFcqaIboCxMIqPFTTYbGCUZFjpspTyxsrd5FT Qkz9Pqylt7fMma42eR/XWfdnrqw31b7F1uNyZAgYwQk+gU2OiYpcP8S/01p2MjieFscO MVOK82Yf7nb/zyO8+zSzPBAggLpvaU5MjzDfwGGMAopsEMNuviDXGpHspnbfRJMHq8O8 o/WaobPuMou0KKn3zmghoTMaj7xpx4efIjXMUz+5oPi+evCn3W+ilJHxFSn8/Cj45AT5 mU1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=RvLHt3DA1NePaI9lqX5gnCftCkD5OVbQBA0ZlkIYBJM=; b=X4XUmsduLHHaaJaKoYo+HT/8Uc0PYQUPDkX30EaMeEbl0eV13hpWx+8SyfawV6Cj18 8TmbXwuA26IY0dvKX5OYwQ9KMfRlsAQSsJqp6fUse0mf2E9ysjmhCyb2iAgczAy0YQum d245czpilGecyZejK+tUS/H+0Nc0Hcy4fYKDxKZwVoumPDBgokelG+mA8bycayyCpxvp tIhM3oMMQ+dXKsAkVTe5sdCLwAedvGgh1mlspLFswu8CCb1eOXrfu4eO1Rjdv1FbalEM HakLkveIECoMYTrfLUhRQpoYjIhyjvohFNU7gQWQwy5HlOuPV84S4qCEjpP+Y90g4bPC Vp/w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p7si2290900edr.600.2021.05.20.07.39.41; Thu, 20 May 2021 07:40:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230447AbhETIul (ORCPT + 99 others); Thu, 20 May 2021 04:50:41 -0400 Received: from outbound-smtp35.blacknight.com ([46.22.139.218]:60289 "EHLO outbound-smtp35.blacknight.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231331AbhETIug (ORCPT ); Thu, 20 May 2021 04:50:36 -0400 Received: from mail.blacknight.com (pemlinmail03.blacknight.ie [81.17.254.16]) by outbound-smtp35.blacknight.com (Postfix) with ESMTPS id DD09D1A4E 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org make W=1 generates the following warning for mm/early_ioremap.c mm/early_ioremap.c:34:24: warning: no previous prototype for ‘early_memremap_pgprot_adjust’ [-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/early_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_ #include +#include /* * 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); +/* + * 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. -- 2.26.2