summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/files/add-no-error-array-bounds.patch
blob: 57b3974d0c8aa91d30fadb78bbc05dd9f6dbaef3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: git/Makefile
===================================================================
--- git.orig/Makefile
+++ git/Makefile
@@ -558,7 +558,7 @@ endif # $(dot-config)
 # Defaults to vmlinux, but the arch makefile usually adds further targets
 all: vmlinux
 
-KBUILD_CFLAGS += -Wno-unused-but-set-variable
+KBUILD_CFLAGS += -Wno-unused-but-set-variable -Wno-error=array-bounds
 
 ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
 KBUILD_CFLAGS	+= -Os