diff options
| author | Christophe Leroy <[email protected]> | 2022-06-10 15:43:43 +0000 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2022-06-19 11:57:56 +0000 |
| commit | ca5dabcff1df6bc8c413922b5fa63cc602858803 (patch) | |
| tree | c57c2d398f1d4d9e47d78dadd3eb0d5af0b4f02a /scripts/clang-tools/gen_compile_commands.py | |
| parent | powerpc/rtas: Allow ibm,platform-dump RTAS call with null buffer address (diff) | |
| download | kernel-ca5dabcff1df6bc8c413922b5fa63cc602858803.tar.gz kernel-ca5dabcff1df6bc8c413922b5fa63cc602858803.zip | |
powerpc/prom_init: Fix build failure with GCC_PLUGIN_STRUCTLEAK_BYREF_ALL and KASAN
When CONFIG_KASAN is selected, we expect prom_init to use __memset()
because it is too early to use memset().
But with CONFIG_GCC_PLUGIN_STRUCTLEAK_BYREF_ALL, the compiler adds calls
to memset() to clear objects on stack, hence the following failure:
PROMCHK arch/powerpc/kernel/prom_init_check
Error: External symbol 'memset' referenced from prom_init.c
make[2]: *** [arch/powerpc/kernel/Makefile:204 : arch/powerpc/kernel/prom_init_check] Erreur 1
prom_find_machine_type() is called from prom_init() and is called only
once, so lets put compat[] in BSS instead of stack to avoid that.
Signed-off-by: Christophe Leroy <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/3802811f7cf94f730be44688539c01bba3a3b5c0.1654875808.git.christophe.leroy@csgroup.eu
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions
