diff options
author | 2022-03-22 14:47:55 -0700 | |
---|---|---|
committer | 2022-03-22 15:57:11 -0700 | |
commit | be4893d92b6b426357978ed955190c0ead23a4b1 (patch) | |
tree | 07b555e85499c480452d8a14533773b31902655e /mm/internal.h | |
parent | mm/usercopy: return 1 from hardened_usercopy __setup() handler (diff) | |
download | linux-be4893d92b6b426357978ed955190c0ead23a4b1.tar.gz linux-be4893d92b6b426357978ed955190c0ead23a4b1.tar.bz2 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/internal.h')
-rw-r--r-- | mm/internal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mm/internal.h b/mm/internal.h index f1554a4e249e..00d6e3e3ec45 100644 --- a/mm/internal.h +++ b/mm/internal.h @@ -155,6 +155,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: */ extern int isolate_lru_page(struct page *page); |