Subject: mainline build failure of powerpc allmodconfig for prom_init_check

From: "Sudip Mukherjee (Codethink)" <[email-masked]>
Date: Thu, 14 Jul 2022 09:55:40 +0100

Hi All,

Not sure if it has been reported before but the latest mainline kernel
branch fails to build for powerpc allmodconfig with gcc-12 and the error is:

Error: External symbol 'memset' referenced from prom_init.c
make[2]: *** [arch/powerpc/kernel/Makefile:204: arch/powerpc/kernel/prom_init_check] Error 1

The commit ca5dabcff1df ("powerpc/prom_init: Fix build failure with
GCC_PLUGIN_STRUCTLEAK_BYREF_ALL and KASAN") looks similar but the error
is still there with gcc-12.

Note: I don't see this error with gcc-11.

I will be happy to test any patch or provide any extra log if needed.

--
Regards
Sudip