acrn-kernel/arch/powerpc/mm
Masahiro Yamada 7ad4bd887d powerpc/book3e: get rid of #include <generated/compile.h>
You cannot include <generated/compile.h> here because it is generated
in init/Makefile but there is no guarantee that it happens before
arch/powerpc/mm/nohash/kaslr_booke.c is compiled for parallel builds.

The places where you can reliably include <generated/compile.h> are:

  - init/          (because init/Makefile can specify the dependency)
  - arch/*/boot/   (because it is compiled after vmlinux)

Commit f231e43333 ("hexagon: get rid of #include <generated/compile.h>")
fixed the last breakage at that time, but powerpc re-added this.

<generated/compile.h> was unneeded because 'build_str' is almost the
same as 'linux_banner' defined in init/version.c

Let's copy the solution from MIPS.
(get_random_boot() in arch/mips/kernel/relocate.c)

Fixes: 6a38ea1d7b ("powerpc/fsl_booke/32: randomize the kernel image offset")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: Scott Wood <oss@buserror.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220604085050.4078927-1-masahiroy@kernel.org
2022-06-06 10:23:33 +10:00
..
book3s32 powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
book3s64 powerpc updates for 5.19 2022-05-28 11:27:17 -07:00
kasan powerpc: Book3S 64-bit outline-only KASAN support 2022-05-22 15:58:29 +10:00
nohash powerpc/book3e: get rid of #include <generated/compile.h> 2022-06-06 10:23:33 +10:00
ptdump powerpc: Book3S 64-bit outline-only KASAN support 2022-05-22 15:58:29 +10:00
Makefile powerpc/mm: Convert to default topdown mmap layout 2022-05-05 22:11:58 +10:00
cacheflush.c powerpc: Fix all occurences of "the the" 2022-05-22 15:59:43 +10:00
copro_fault.c
dma-noncoherent.c
drmem.c powerpc: Add missing headers 2022-05-08 22:15:40 +10:00
fault.c
hugetlbpage.c powerpc/mm: Move get_unmapped_area functions to slice.c 2022-05-05 22:11:58 +10:00
init-common.c
init_32.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00
init_64.c Merge branch 'topic/ppc-kvm' into next 2022-05-19 23:10:42 +10:00
ioremap.c
ioremap_32.c
ioremap_64.c
maccess.c
mem.c powerpc updates for 5.19 2022-05-28 11:27:17 -07:00
mmu_context.c
mmu_decl.h powerpc/book3e: Fix sparse report in mm/nohash/fsl_book3e.c 2022-05-04 19:37:46 +10:00
numa.c powerpc/numa: Associate numa node to its cpu earlier 2022-05-22 15:58:30 +10:00
pageattr.c powerpc: align address to page boundary in change_page_attr() 2022-05-08 22:15:41 +10:00
pgtable-frag.c powerpc: fix typos in comments 2022-05-05 22:12:44 +10:00
pgtable.c powerpc: Fix all occurences of "the the" 2022-05-22 15:59:43 +10:00
pgtable_32.c
pgtable_64.c powerpc: Remove asm/prom.h from all files that don't need it 2022-05-08 22:15:04 +10:00