]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/compiler-clang.h
compiler, clang: suppress warning for unused static inline functions
[karo-tx-linux.git] / include / linux / compiler-clang.h
index de179993e039d41d7e9034b5744be40954f81c09..ea9126006a69f94c7b8ea1705bf43bdf7b48e16c 100644 (file)
  * with any version that can compile the kernel
  */
 #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
+
+/*
+ * GCC does not warn about unused static inline functions for
+ * -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))