Re: [patch] compiler, clang: suppress warning for unused static inline functions

From: Andrew Morton
Date: Wed May 24 2017 - 17:32:10 EST


On Wed, 24 May 2017 14:22:29 -0700 Matthias Kaehlcke <mka@xxxxxxxxxxxx> wrote:

> I'm not a kernel maintainer, so it's not my decision whether this
> warning should be silenced, my personal opinion is that it's benfits
> outweigh the inconveniences of dealing with half-false positives,
> generally caused by the heavy use of #ifdef by the kernel itself.

Please resend and include this info in the changelog. Describe
instances where this warning has resulted in actual runtime or
developer-visible benefits.

Where possible an appropriate I suggest it is better to move the
offending function into a header file, rather than adding ifdefs.