aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/clang-tools/run-clang-tools.py
diff options
context:
space:
mode:
authorNathan Chancellor <[email protected]>2023-01-12 03:05:05 +0000
committerMasahiro Yamada <[email protected]>2023-01-26 03:42:40 +0000
commit05e05bfc92d196669a3d087fc34d3998b6ddb758 (patch)
treee20642880e48ca05cbc411e23eb780e494aa90ee /scripts/clang-tools/run-clang-tools.py
parentpowerpc/vdso: Improve linker flags (diff)
downloadkernel-05e05bfc92d196669a3d087fc34d3998b6ddb758.tar.gz
kernel-05e05bfc92d196669a3d087fc34d3998b6ddb758.zip
powerpc/vdso: Remove an unsupported flag from vgettimeofday-32.o with clang
When clang's -Qunused-arguments is dropped from KBUILD_CPPFLAGS, it warns: clang-16: error: argument unused during compilation: '-fno-stack-clash-protection' [-Werror,-Wunused-command-line-argument] This warning happens because vgettimeofday-32.c gets its base CFLAGS from the main kernel, which may contain flags that are only supported on a 64-bit target but not a 32-bit one, which is the case here. -fstack-clash-protection and its negation are only suppported by the 64-bit powerpc target but that flag is included in an invocation for a 32-bit powerpc target, so clang points out that while the flag is one that it recognizes, it is not actually used by this compiler job. To eliminate the warning, remove -fno-stack-clash-protection from vgettimeofday-32.c's CFLAGS when using clang, as has been done for other flags previously. Signed-off-by: Nathan Chancellor <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]> Tested-by: Linux Kernel Functional Testing <[email protected]> Tested-by: Anders Roxell <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
Diffstat (limited to 'scripts/clang-tools/run-clang-tools.py')
0 files changed, 0 insertions, 0 deletions