s390/vdso: Drop unused '-s' flag from KBUILD_AFLAGS_64
authorNathan Chancellor <nathan@kernel.org>
Thu, 12 Jan 2023 03:05:06 +0000 (20:05 -0700)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 26 Jan 2023 03:42:47 +0000 (12:42 +0900)
commitf8210229f1f3e187ed4c40191b0101a8504b2f80
tree307ab2b973ef92db8969173e42e9d554734d262d
parent05e05bfc92d196669a3d087fc34d3998b6ddb758
s390/vdso: Drop unused '-s' flag from KBUILD_AFLAGS_64

When clang's -Qunused-arguments is dropped from KBUILD_CPPFLAGS, it
warns:

  clang-16: error: argument unused during compilation: '-s' [-Werror,-Wunused-command-line-argument]

The compiler's '-s' flag is a linking option (it is passed along to the
linker directly), which means it does nothing when the linker is not
invoked by the compiler. The kernel builds all .o files with '-c', which
stops the compilation pipeline before linking, so '-s' can be safely
dropped from KBUILD_AFLAGS_64.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Reviewed-by: Sven Schnelle <svens@linux.ibm.com>
Tested-by: Linux Kernel Functional Testing <lkft@linaro.org>
Tested-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
arch/s390/kernel/vdso64/Makefile