Created
March 6, 2020 06:12
-
-
Save nathanchance/767cccf4d093c1342e1994083518815e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Makefile b/Makefile | |
index 86035d866f2c..a0c6c91abc9f 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -748,6 +748,9 @@ KBUILD_CFLAGS += -Wno-tautological-compare | |
# source of a reference will be _MergedGlobals and not on of the whitelisted names. | |
# See modpost pattern 2 | |
KBUILD_CFLAGS += -mno-global-merge | |
+# clang's -Wpointer-to-int-cast warns when casting to enums, which does not match GCC. | |
+# Disable this warning because it is very noisy across the kernel and serves no real purpose. | |
+KBUILD_CFLAGS += $(call cc-disable-warning, pointer-to-enum-cast) | |
else | |
# These warnings generated too much noise in a regular build. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment