Skip to content

Commit 87de84c

Browse files
committed
kbuild: remove cc-option test of -Werror=date-time
The minimal compiler versions, GCC 4.9 and Clang 10 support this flag. Here is the godbolt: https://godbolt.org/z/xvjcMa Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nathan Chancellor <natechancellor@gmail.com> Acked-by: Will Deacon <will@kernel.org>
1 parent 7d4eb0d commit 87de84c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ KBUILD_CFLAGS += -fno-stack-check
946946
KBUILD_CFLAGS += $(call cc-option,-fconserve-stack)
947947

948948
# Prohibit date/time macros, which would make the build non-deterministic
949-
KBUILD_CFLAGS += $(call cc-option,-Werror=date-time)
949+
KBUILD_CFLAGS += -Werror=date-time
950950

951951
# enforce correct pointer usage
952952
KBUILD_CFLAGS += $(call cc-option,-Werror=incompatible-pointer-types)

arch/arm64/kernel/vdso32/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ VDSO_CFLAGS += $(call cc32-option,-Wdeclaration-after-statement,)
9292
VDSO_CFLAGS += $(call cc32-option,-Wno-pointer-sign)
9393
VDSO_CFLAGS += -fno-strict-overflow
9494
VDSO_CFLAGS += $(call cc32-option,-Werror=strict-prototypes)
95-
VDSO_CFLAGS += $(call cc32-option,-Werror=date-time)
95+
VDSO_CFLAGS += -Werror=date-time
9696
VDSO_CFLAGS += $(call cc32-option,-Werror=incompatible-pointer-types)
9797

9898
# The 32-bit compiler does not provide 128-bit integers, which are used in

0 commit comments

Comments
 (0)