summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/Makefile
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2022-07-25 12:04:44 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2022-07-25 12:04:44 +1000
commite7c45a08451e7a7499f1029522a70bbb15072be2 (patch)
treeec12c647ec501e11ea1c204cc18f6f320517dd7b /arch/powerpc/kernel/Makefile
parentfd97e4ad6d3b0c9fce3bca8ea8e6969d9ce7423b (diff)
parentbe640317a1d0b9cf42fedb2debc2887a7cfa38de (diff)
downloadlinux-stable-e7c45a08451e7a7499f1029522a70bbb15072be2.tar.gz
linux-stable-e7c45a08451e7a7499f1029522a70bbb15072be2.tar.bz2
linux-stable-e7c45a08451e7a7499f1029522a70bbb15072be2.zip
Merge branch 'fixes' into next
Bring in a build fix for GCC12 from our fixes branch.
Diffstat (limited to 'arch/powerpc/kernel/Makefile')
-rw-r--r--arch/powerpc/kernel/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/powerpc/kernel/Makefile b/arch/powerpc/kernel/Makefile
index 317c984ee9d0..de954fe106c5 100644
--- a/arch/powerpc/kernel/Makefile
+++ b/arch/powerpc/kernel/Makefile
@@ -20,6 +20,7 @@ CFLAGS_prom.o += $(DISABLE_LATENT_ENTROPY_PLUGIN)
CFLAGS_prom_init.o += -fno-stack-protector
CFLAGS_prom_init.o += -DDISABLE_BRANCH_PROFILING
CFLAGS_prom_init.o += -ffreestanding
+CFLAGS_prom_init.o += $(call cc-option, -ftrivial-auto-var-init=uninitialized)
ifdef CONFIG_FUNCTION_TRACER
# Do not trace early boot code