]> git.baikalelectronics.ru Git - kernel.git/commit
mm/early_ioremap: declare early_memremap_pgprot_adjust()
authorVlastimil Babka <vbabka@suse.cz>
Tue, 22 Mar 2022 21:47:55 +0000 (14:47 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Mar 2022 22:57:11 +0000 (15:57 -0700)
commitb980384fcd8389c0d2f8d8a942bfb1bd7fbea337
tree07b555e85499c480452d8a14533773b31902655e
parente421458b3d5b8efb22b2129486e768a5fa8cfb22
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>
mm/early_ioremap.c
mm/internal.h