compiler, clang: properly override 'inline' for clang
Changes
1 files changed · +2 −1
| File | Status | Add | Del | Content |
|---|---|---|---|---|
| include/linux/compiler-clang.h | modified | +2 | −1 | View file |
include/linux/compiler-clang.h
View filediff --git a/include/linux/compiler-clang.h b/include/linux/compiler-clang.h
index ea91260..d614c5e 100644
--- a/include/linux/compiler-clang.h
+++ b/include/linux/compiler-clang.h
@@ -21,4 +21,5 @@
* -Wunused-function. This turns out to avoid the need for complex #ifdef
* directives. Suppress the warning in clang as well.
*/
-#define inline inline __attribute__((unused))
+#undef inline
+#define inline inline __attribute__((unused)) notrace