Fix RK3588 kernel build.

This commit is contained in:
fewtarius 2023-12-28 13:30:06 +00:00
parent f1a9df8030
commit 880fe0fbf9
No known key found for this signature in database
GPG key ID: F4AE55305D1B8C1A

View file

@ -0,0 +1,12 @@
diff --git a/Makefile b/Makefile
index 60197900e..b0d6dbe83 100644
--- a/Makefile
+++ b/Makefile
@@ -710,6 +710,7 @@ KBUILD_CFLAGS += $(call cc-disable-warning, array-compare)
KBUILD_CFLAGS += $(call cc-disable-warning, stringop-overread)
KBUILD_CFLAGS += $(call cc-disable-warning, dangling-pointer)
KBUILD_CFLAGS += $(call cc-disable-warning, address)
+KBUILD_CFLAGS += $(call cc-disable-warning, enum-int-mismatch)
ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE
KBUILD_CFLAGS += -Os