Re: [PATCH v2] kbuild: allow Clang to find unused static inline functions for W=1 build

2019-09-12 Thread Masahiro Yamada
On Sat, Sep 7, 2019 at 11:53 AM Masahiro Yamada wrote: > > GCC and Clang have different policy for -Wunused-function; GCC does not > warn unused static inline functions at all whereas Clang does if they > are defined in source files instead of included headers although it has > been suppressed sin

[PATCH v2] kbuild: allow Clang to find unused static inline functions for W=1 build

2019-09-06 Thread Masahiro Yamada
GCC and Clang have different policy for -Wunused-function; GCC does not warn unused static inline functions at all whereas Clang does if they are defined in source files instead of included headers although it has been suppressed since commit abb2ea7dfd82 ("compiler, clang: suppress warning for unu