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

Re: [PATCH] Mark inline functions as __maybe_unused

2015-01-28 Thread Måns Rullgård
Behan Webster beh...@converseincode.com 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.

[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

[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 beh...@converseincode.com Suggested-by: Arnd Bergmann a...@arndb.de Cc: Arnd Bergmann a...@arndb.de Cc: Christopher Li spa...@chrisli.org ---