Skip to content

Commit 7e4773f

Browse files
Arseny Solokhampe
authored andcommitted
powerpc/fsl_booke/32: Fix build with CONFIG_RANDOMIZE_BASE
Building the current 5.8 kernel for an e500 machine with CONFIG_RANDOMIZE_BASE=y and CONFIG_BLOCK=n yields the following failure: arch/powerpc/mm/nohash/kaslr_booke.c: In function 'kaslr_early_init': arch/powerpc/mm/nohash/kaslr_booke.c:387:2: error: implicit declaration of function 'flush_icache_range'; did you mean 'flush_tlb_range'? Indeed, including asm/cacheflush.h into kaslr_booke.c fixes the build. Fixes: 2b0e86c ("powerpc/fsl_booke/32: implement KASLR infrastructure") Cc: [email protected] # v5.5+ Signed-off-by: Arseny Solokha <[email protected]> Reviewed-by: Jason Yan <[email protected]> Acked-by: Scott Wood <[email protected]> [mpe: Tweak change log to mention CONFIG_BLOCK=n] Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 4877846 commit 7e4773f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/powerpc/mm/nohash/kaslr_booke.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <linux/memblock.h>
1515
#include <linux/libfdt.h>
1616
#include <linux/crash_core.h>
17+
#include <asm/cacheflush.h>
1718
#include <asm/pgalloc.h>
1819
#include <asm/prom.h>
1920
#include <asm/kdump.h>

0 commit comments

Comments
 (0)