Skip to content

Commit 80c4e19

Browse files
t-8chwilldeacon
authored andcommitted
arm64: vdso32: Stop suppressing warnings
These warnings don't seem to trigger anymore. Probably due to the introduction of the vdso/ header namespace. Nowadays these suppression only hide real problems. Re-enable the warnings. Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Signed-off-by: Will Deacon <will@kernel.org>
1 parent 8f5ae30 commit 80c4e19

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

arch/arm64/kernel/vdso32/Makefile

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ endif
2121

2222
cc32-option = $(call try-run,\
2323
$(CC_COMPAT) $(1) -c -x c /dev/null -o "$$TMP",$(1),$(2))
24-
cc32-disable-warning = $(call try-run,\
25-
$(CC_COMPAT) -W$(strip $(1)) -c -x c /dev/null -o "$$TMP",-Wno-$(strip $(1)))
2624

2725
# We cannot use the global flags to compile the vDSO files, the main reason
2826
# being that the 32-bit compiler may be older than the main (64-bit) compiler
@@ -74,16 +72,6 @@ VDSO_CFLAGS += $(call cc32-option,-Werror=strict-prototypes)
7472
VDSO_CFLAGS += -Werror=date-time
7573
VDSO_CFLAGS += $(call cc32-option,-Werror=incompatible-pointer-types)
7674

77-
# The 32-bit compiler does not provide 128-bit integers, which are used in
78-
# some headers that are indirectly included from the vDSO code.
79-
# This hack makes the compiler happy and should trigger a warning/error if
80-
# variables of such type are referenced.
81-
VDSO_CFLAGS += -D__uint128_t='void*'
82-
# Silence some warnings coming from headers that operate on long's
83-
# (on GCC 4.8 or older, there is unfortunately no way to silence this warning)
84-
VDSO_CFLAGS += $(call cc32-disable-warning,shift-count-overflow)
85-
VDSO_CFLAGS += -Wno-int-to-pointer-cast
86-
8775
# Compile as THUMB2 or ARM. Unwinding via frame-pointers in THUMB2 is
8876
# unreliable.
8977
ifeq ($(CONFIG_THUMB2_COMPAT_VDSO), y)

0 commit comments

Comments
 (0)