Skip to content

Commit 8e11d62

Browse files
chleroympe
authored andcommitted
powerpc/mem: Add back missing header to fix 'no previous prototype' error
Commit b26e8f2 ("powerpc/mem: Move cache flushing functions into mm/cacheflush.c") removed asm/sparsemem.h which is required when CONFIG_MEMORY_HOTPLUG is selected to get the declaration of create_section_mapping(). Add it back. Fixes: b26e8f2 ("powerpc/mem: Move cache flushing functions into mm/cacheflush.c") Reported-by: kernel test robot <[email protected]> Signed-off-by: Christophe Leroy <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/3e5b63bb3daab54a1eb9c20221c2e9528c4db9b3.1622883330.git.christophe.leroy@csgroup.eu
1 parent 59cc84c commit 8e11d62

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/powerpc/mm/mem.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <asm/machdep.h>
2121
#include <asm/rtas.h>
2222
#include <asm/kasan.h>
23+
#include <asm/sparsemem.h>
2324
#include <asm/svm.h>
2425

2526
#include <mm/mmu_decl.h>

0 commit comments

Comments
 (0)