Commit 9a40230a authored by Arseny Solokha's avatar Arseny Solokha Committed by Sasha Levin
Browse files

powerpc/fsl_booke/32: Fix build with CONFIG_RANDOMIZE_BASE

commit 7e4773f7 upstream.

Building the current 5.8 kernel for an e500 machine with
CONFIG_RANDOMIZE_BASE=y and CONFIG_BLOCK=n yields the following

  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: 2b0e86cc

 ("powerpc/fsl_booke/32: implement KASLR infrastructure")
Cc: # v5.5+
Signed-off-by: default avatarArseny Solokha <>
Reviewed-by: default avatarJason Yan <>
Acked-by: default avatarScott Wood <>
[mpe: Tweak change log to mention CONFIG_BLOCK=n]
Signed-off-by: default avatarMichael Ellerman <>

Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 17b6bf58
......@@ -14,6 +14,7 @@
#include <linux/memblock.h>
#include <linux/libfdt.h>
#include <linux/crash_core.h>
#include <asm/cacheflush.h>
#include <asm/pgalloc.h>
#include <asm/prom.h>
#include <asm/kdump.h>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment