--- tmp/Makefile	2017-06-09 19:31:37.244820767 -0700
+++ tmp2/Makefile	2017-06-09 19:31:33.736797254 -0700
@@ -374,10 +374,17 @@
 
 KBUILD_CPPFLAGS := -D__KERNEL__
 
-KBUILD_CFLAGS   := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
+KBUILD_CFLAGS   := -Wundef -Wno-trigraphs \
+  		   -Wno-deprecated \
+		   -Wno-error -w \
+		   -Wno-deprecated-declarations \
 		   -fno-strict-aliasing -fno-common \
-		   -Werror-implicit-function-declaration \
+		   -fno-delete-null-pointer-checks \
+		   -Wno-misleading-indentation \
 		   -Wno-format-security \
+		   -Wno-unused-const-variable \
+		   -Wno-shift-overflow \
+	           -Wno-bool-compare \
 		   -fno-delete-null-pointer-checks
 KBUILD_AFLAGS_KERNEL :=
 KBUILD_CFLAGS_KERNEL :=
