Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6d53cefb authored by Linus Torvalds's avatar Linus Torvalds
Browse files

compiler, clang: properly override 'inline' for clang



Commit abb2ea7d ("compiler, clang: suppress warning for unused
static inline functions") just caused more warnings due to re-defining
the 'inline' macro.

So undef it before re-defining it, and also add the 'notrace' attribute
like the gcc version that this is overriding does.

Maybe this makes clang happier.

Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 5ad9345d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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