powerpc/vdso: Remove unused '-s' flag from ASFLAGS
authorNathan Chancellor <nathan@kernel.org>
Thu, 12 Jan 2023 03:05:03 +0000 (20:05 -0700)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 26 Jan 2023 03:42:06 +0000 (12:42 +0900)
commit024734d132846dcb27f07deb1ec5be64d4cbfae9
tree52111f8b302ed96eebd586108fe4175fc5d85f91
parent31f48f16264bc70962fb3e7ec62da64d0a2ba04a
powerpc/vdso: Remove unused '-s' flag from ASFLAGS

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 ASFLAGS.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Segher Boessenkool <segher@kernel.crashing.org>
Tested-by: Linux Kernel Functional Testing <lkft@linaro.org>
Tested-by: Anders Roxell <anders.roxell@linaro.org>
Acked-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
arch/powerpc/kernel/vdso/Makefile