diff --git a/Makefile b/Makefile index 5a2a4c204273..85d240b3b6c7 100644 --- a/Makefile +++ b/Makefile @@ -1052,12 +1052,6 @@ KBUILD_CFLAGS += -Wno-pointer-sign # globally built with -Wcast-function-type. KBUILD_CFLAGS += $(call cc-option, -Wcast-function-type) -# To gain proper coverage for CONFIG_UBSAN_BOUNDS and CONFIG_FORTIFY_SOURCE, -# the kernel uses only C99 flexible arrays for dynamically sized trailing -# arrays. Enforce this for everything that may examine structure sizes and -# perform bounds checking. -KBUILD_CFLAGS += $(call cc-option, -fstrict-flex-arrays=3) - # disable stringop warnings in gcc 8+ KBUILD_CFLAGS += $(call cc-disable-warning, stringop-truncation)