linux-stable/arch
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
..
alpha Not a lot of material this cycle. Many singleton patches against various 2022-05-27 11:22:03 -07:00
arc
arm Not a lot of material this cycle. Many singleton patches against various 2022-05-27 11:22:03 -07:00
arm64 powerpc updates for 5.19 2022-05-28 11:27:17 -07:00
csky Yang Shi has improved the behaviour of khugepaged collapsing of readonly 2022-05-26 12:32:41 -07:00
hexagon
ia64 Not a lot of material this cycle. Many singleton patches against various 2022-05-27 11:22:03 -07:00
m68k Not a lot of material this cycle. Many singleton patches against various 2022-05-27 11:22:03 -07:00
microblaze
mips Pin control bulk changes for the v5.19 series: 2022-05-28 11:15:54 -07:00
nios2 Kbuild updates for v5.19 2022-05-26 12:09:50 -07:00
openrisc OpenRISC updates for 5.19 2022-05-26 17:27:49 -07:00
parisc Yang Shi has improved the behaviour of khugepaged collapsing of readonly 2022-05-26 12:32:41 -07:00
powerpc powerpc/book3e: get rid of #include <generated/compile.h> 2022-06-06 10:23:33 +10:00
riscv Not a lot of material this cycle. Many singleton patches against various 2022-05-27 11:22:03 -07:00
s390 This update includes the following changes: 2022-05-27 18:06:49 -07:00
sh Not a lot of material this cycle. Many singleton patches against various 2022-05-27 11:22:03 -07:00
sparc Yang Shi has improved the behaviour of khugepaged collapsing of readonly 2022-05-26 12:32:41 -07:00
um Kbuild updates for v5.19 2022-05-26 12:09:50 -07:00
x86 This update includes the following changes: 2022-05-27 18:06:49 -07:00
xtensa
.gitignore
Kconfig powerpc updates for 5.19 2022-05-28 11:27:17 -07:00