Re: [PATCH] Mark inline functions as __maybe_unused

2015-01-28 Thread Måns Rullgård
Behan Webster writes: > clang warns if inline functions aren't used. By making them __maybe_unused > there is no warning for either gcc nor clang. Are you sure about that? I've never seen such behaviour from clang (or any other compiler), and it would truly be idiotic. If clang has taken to wa

[PATCH] Mark inline functions as __maybe_unused

2015-01-27 Thread Behan Webster
clang warns if inline functions aren't used. By making them __maybe_unused there is no warning for either gcc nor clang. Signed-off-by: Behan Webster Suggested-by: Arnd Bergmann Cc: Arnd Bergmann Cc: "Christopher Li" --- include/linux/compiler-gcc.h | 12 ++-- 1 file changed, 6 insert