powerpc/fsl_booke/32: Fix build with CONFIG_RANDOMIZE_BASE
authorArseny Solokha <asolokha@kb.kras.ru>
Sat, 13 Jun 2020 16:28:01 +0000 (23:28 +0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 22 Jun 2020 10:41:52 +0000 (20:41 +1000)
commit7e4773f73dcfb92e7e33532162f722ec291e75a4
tree8255f5a05d2910b795362748f73e46926724d10b
parent48778464bb7d346b47157d21ffde2af6b2d39110
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: 2b0e86cc5de6 ("powerpc/fsl_booke/32: implement KASLR infrastructure")
Cc: stable@vger.kernel.org # v5.5+
Signed-off-by: Arseny Solokha <asolokha@kb.kras.ru>
Reviewed-by: Jason Yan <yanaijie@huawei.com>
Acked-by: Scott Wood <oss@buserror.net>
[mpe: Tweak change log to mention CONFIG_BLOCK=n]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200613162801.1946619-1-asolokha@kb.kras.ru
arch/powerpc/mm/nohash/kaslr_booke.c