From: Masahiro Yamada Date: Thu, 9 May 2019 06:45:49 +0000 (+0900) Subject: kbuild: add -Wvla flag unconditionally X-Git-Tag: v5.4-rc1~926^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8289f913fe12644a9358c12df3da5bd4e7767df0;p=platform%2Fkernel%2Flinux-rpi.git kbuild: add -Wvla flag unconditionally This flag is documented in the GCC 4.6 manual, and recognized by Clang as well. Let's rip off the cc-option switch. Signed-off-by: Masahiro Yamada Reviewed-by: Sedat Dilek Reviewed-by: Nathan Chancellor Acked-by: Kees Cook Tested-by: Nick Desaulniers --- diff --git a/Makefile b/Makefile index 2896518..a99c7a1 100644 --- a/Makefile +++ b/Makefile @@ -841,7 +841,7 @@ NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include) KBUILD_CFLAGS += -Wdeclaration-after-statement # Variable Length Arrays (VLAs) should not be used anywhere in the kernel -KBUILD_CFLAGS += $(call cc-option,-Wvla) +KBUILD_CFLAGS += -Wvla # disable pointer signed / unsigned warnings in gcc 4.0 KBUILD_CFLAGS += -Wno-pointer-sign