]> git.baikalelectronics.ru Git - kernel.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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 11 Jun 2017 22:51:56 +0000 (15:51 -0700)
commit9a8a5a9df73dfddb64ef4b36eb9bacd958d1cfa9
tree6e0db894dc3861cb6119a3a22d3add8f692f75ec
parente33ddf90e97da00e5e16ae2776ad72b3cf1ff999
compiler, clang: properly override 'inline' for clang

Commit ce6ff8d2d121 ("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>
include/linux/compiler-clang.h