summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada2019-05-09 08:45:49 +0200
committerMasahiro Yamada2019-05-18 04:49:52 +0200
commit8289f913fe12644a9358c12df3da5bd4e7767df0 (patch)
tree270c9c64d47aa22fe25eebe63000bb956ba29899 /Makefile
parentarch: remove dangling asm-generic wrappers (diff)
downloadkernel-qcow2-linux-8289f913fe12644a9358c12df3da5bd4e7767df0.tar.gz
kernel-qcow2-linux-8289f913fe12644a9358c12df3da5bd4e7767df0.tar.xz
kernel-qcow2-linux-8289f913fe12644a9358c12df3da5bd4e7767df0.zip
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 <yamada.masahiro@socionext.com> Reviewed-by: Sedat Dilek <sedat.dilek@gmail.com> Reviewed-by: Nathan Chancellor <natechancellor@gmail.com> Acked-by: Kees Cook <keescook@chromium.org> Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 28965187c528..a99c7a1836b5 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