diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2020-09-10 22:51:20 +0900 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2020-09-25 00:36:50 +0900 |
commit | 87de84c9140e1ccb221c68bb7e4939e880b3f2bb (patch) | |
tree | fc27841aa1f9b755452bafa5818cc25f9704dc7e /Makefile | |
parent | 7d4eb0d8e229fa51e14f0f85de03c02880e7d742 (diff) | |
download | linux-next-87de84c9140e1ccb221c68bb7e4939e880b3f2bb.tar.gz |
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>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -946,7 +946,7 @@ KBUILD_CFLAGS += -fno-stack-check KBUILD_CFLAGS += $(call cc-option,-fconserve-stack) # Prohibit date/time macros, which would make the build non-deterministic -KBUILD_CFLAGS += $(call cc-option,-Werror=date-time) +KBUILD_CFLAGS += -Werror=date-time # enforce correct pointer usage KBUILD_CFLAGS += $(call cc-option,-Werror=incompatible-pointer-types) |