Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Nathan Chancellor and committed by
Masahiro Yamada
024734d1 31f48f16

+2 -2
+2 -2
arch/powerpc/kernel/vdso/Makefile
··· 51 51 ccflags-$(CONFIG_LD_IS_LLD) += $(call cc-option,--ld-path=$(LD),-fuse-ld=lld) 52 52 53 53 CC32FLAGS := -Wl,-soname=linux-vdso32.so.1 -m32 54 - AS32FLAGS := -D__VDSO32__ -s 54 + AS32FLAGS := -D__VDSO32__ 55 55 56 56 CC64FLAGS := -Wl,-soname=linux-vdso64.so.1 57 - AS64FLAGS := -D__VDSO64__ -s 57 + AS64FLAGS := -D__VDSO64__ 58 58 59 59 targets += vdso32.lds 60 60 CPPFLAGS_vdso32.lds += -P -C -Upowerpc