summaryrefslogtreecommitdiffstats
path: root/mm/early_ioremap.c
diff options
context:
space:
mode:
authorVlastimil Babka <vbabka@suse.cz>2022-03-22 22:47:55 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2022-03-22 23:57:11 +0100
commitbe4893d92b6b426357978ed955190c0ead23a4b1 (patch)
tree07b555e85499c480452d8a14533773b31902655e /mm/early_ioremap.c
parentmm/usercopy: return 1 from hardened_usercopy __setup() handler (diff)
downloadlinux-be4893d92b6b426357978ed955190c0ead23a4b1.tar.xz
linux-be4893d92b6b426357978ed955190c0ead23a4b1.zip
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 <vbabka@suse.cz> Cc: Mel Gorman <mgorman@techsingularity.net> Cc: Matthew Wilcox <willy@infradead.org> Cc: David Hildenbrand <david@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/early_ioremap.c')
-rw-r--r--mm/early_ioremap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/early_ioremap.c b/mm/early_ioremap.c
index 74984c23a87e..9bc12e526ed0 100644
--- a/mm/early_ioremap.c
+++ b/mm/early_ioremap.c
@@ -17,6 +17,7 @@
#include <linux/vmalloc.h>
#include <asm/fixmap.h>
#include <asm/early_ioremap.h>
+#include "internal.h"
#ifdef CONFIG_MMU
static int early_ioremap_debug __initdata;