diff --git a/Makefile b/Makefile index a10c99a7fa6..054727e77ed 100644 --- a/Makefile +++ b/Makefile @@ -381,7 +381,8 @@ KBUILD_CFLAGS := -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \ -Werror-implicit-function-declaration \ -Wno-format-security \ -fno-delete-null-pointer-checks \ - -Werror=format -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast + -Werror=format -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast \ + -w KBUILD_AFLAGS_KERNEL := KBUILD_CFLAGS_KERNEL :=