]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
compiler, clang: properly override 'inline' for clang
authorLinus Torvalds <torvalds@linux-foundation.org>
Sun, 11 Jun 2017 22:51:56 +0000 (15:51 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 22 Jul 2018 12:25:51 +0000 (14:25 +0200)
commit9acb6600059ffa072a30c221ad784d1ebcea7b42
tree7df04c27e36ec4598740687e71681b58a188c99e
parentf3af03e9c7f06275c3236b08bdcdf561f88fb1fa
compiler, clang: properly override 'inline' for clang

commit 6d53cefb18e4646fb4bf62ccb6098fb3808486df upstream.

Commit abb2ea7dfd82 ("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: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/compiler-clang.h