Skip to content

Commit fd8589d

Browse files
nathanchancemasahir0y
authored andcommitted
s390/vdso: Drop '-shared' from KBUILD_CFLAGS_64
When clang's -Qunused-arguments is dropped from KBUILD_CPPFLAGS, it points out that there is a linking phase flag added to CFLAGS, which will only be used for compiling clang-16: error: argument unused during compilation: '-shared' [-Werror,-Wunused-command-line-argument] '-shared' is already present in ldflags-y so it can just be dropped. Fixes: 2b2a258 ("s390/vdso: Use $(LD) instead of $(CC) to link vDSO") 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>
1 parent f821022 commit fd8589d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/s390/kernel/vdso64/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ KBUILD_AFLAGS_64 := $(filter-out -m64,$(KBUILD_AFLAGS))
2525
KBUILD_AFLAGS_64 += -m64
2626

2727
KBUILD_CFLAGS_64 := $(filter-out -m64,$(KBUILD_CFLAGS))
28-
KBUILD_CFLAGS_64 += -m64 -fPIC -shared -fno-common -fno-builtin
28+
KBUILD_CFLAGS_64 += -m64 -fPIC -fno-common -fno-builtin
2929
ldflags-y := -fPIC -shared -soname=linux-vdso64.so.1 \
3030
--hash-style=both --build-id=sha1 -T
3131

0 commit comments

Comments
 (0)