Skip to content

Commit 281817d

Browse files
t-8chwilldeacon
authored andcommitted
arm64: vdso32: Respect -Werror from kbuild
The compiler flags for the compat vDSO are built manually as they are not compatible with the ones from kbuild. CONFIG_WERROR is not respected. Explicitly inherit -Werror from kbuild. Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Signed-off-by: Will Deacon <will@kernel.org>
1 parent 80c4e19 commit 281817d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/arm64/kernel/vdso32/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ VDSO_CFLAGS += -DENABLE_COMPAT_VDSO=1
6161
# KBUILD_CFLAGS from top-level Makefile
6262
VDSO_CFLAGS += -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
6363
-fno-strict-aliasing -fno-common \
64+
$(filter -Werror,$(KBUILD_CPPFLAGS)) \
6465
-Werror-implicit-function-declaration \
6566
-Wno-format-security \
6667
-std=gnu11

0 commit comments

Comments
 (0)