powerpc/book3e: get rid of #include <generated/compile.h>
Masahiro Yamada authored
commit 7ad4bd88 upstream.

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 f231e433 ("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: 6a38ea1d

 ("powerpc/fsl_booke/32: randomize the kernel image offset")
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
Acked-by: Scott ...
d807e0df
Name Last commit Last update
..
alpha alpha: fix alloc_zeroed_user_highpage_movable()
arc ARC: entry: fix syscall_trace_exit argument
arm ARM: dts: aspeed: ast2600-evb: Enable RX delay for MAC0/MAC1
arm64 KVM: arm64: Don't read a HW interrupt pending state in user context
csky csky: patch_text: Fixup last cpu should be master
h8300 Merge branch 'akpm' (patches from Andrew)
hexagon uaccess: fix integer overflow on access_ok()
ia64 ia64: define get_cycles macro for arch-override
m68k m68knommu: fix undefined reference to `mach_get_rtc_pll'
microblaze uaccess: fix nios2 and microblaze get_user_8()
mips mips: cpc: Fix refcount leak in mips_cpc_default_phys_base
nds32 nds32: fix access_ok() checks in get/put_user
nios2 nios2: use fallback for random_get_entropy() instead of zero
openrisc openrisc: start CPU timer early in boot
parisc parisc/stifb: Implement fb_is_primary_device()
powerpc powerpc/book3e: get rid of #include <generated/compile.h>
riscv RISC-V: use memcpy for kexec_file mode
s390 s390/gmap: voluntarily schedule during key setting
sh Documentation, arch: Remove leftovers from CIFS_WEAK_PW_HASH
sparc signal: Deliver SIGTRAP on perf event asynchronously if blocked
um um: line: Use separate IRQs per line
x86 x86/speculation/mmio: Print SMT warning
xtensa xtensa/simdisk: fix proc_read_simdisk()
.gitignore .gitignore: prefix local generated files with a slash
Kconfig stack: Constrain and fix stack offset randomization with Clang builds