From: Vlastimil Babka Date: Tue, 22 Mar 2022 21:47:55 +0000 (-0700) Subject: mm/early_ioremap: declare early_memremap_pgprot_adjust() X-Git-Tag: v5.18-rc1~168^2~42 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=be4893d92b6b426357978ed955190c0ead23a4b1;p=thirdparty%2Fkernel%2Flinux.git mm/early_ioremap: declare early_memremap_pgprot_adjust() The mm/ directory can almost fully be built with W=1, which would help in local development. One remaining issue is missing prototype for early_memremap_pgprot_adjust(). Thus add a declaration for this function. Use mm/internal.h instead of asm/early_ioremap.h to avoid missing type definitions and unnecessary exposure. Link: https://lkml.kernel.org/r/20220314165724.16071-2-vbabka@suse.cz Signed-off-by: Vlastimil Babka Cc: Mel Gorman Cc: Matthew Wilcox Cc: David Hildenbrand Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/early_ioremap.c b/mm/early_ioremap.c index 74984c23a87e0..9bc12e526ed0b 100644 --- a/mm/early_ioremap.c +++ b/mm/early_ioremap.c @@ -17,6 +17,7 @@ #include #include #include +#include "internal.h" #ifdef CONFIG_MMU static int early_ioremap_debug __initdata; diff --git a/mm/internal.h b/mm/internal.h index f1554a4e249e4..00d6e3e3ec45d 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -154,6 +154,12 @@ extern unsigned long highest_memmap_pfn; */ #define MAX_RECLAIM_RETRIES 16 +/* + * in mm/early_ioremap.c + */ +pgprot_t __init early_memremap_pgprot_adjust(resource_size_t phys_addr, + unsigned long size, pgprot_t prot); + /* * in mm/vmscan.c: */