[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170525174921.GU141096@google.com>
Date: Thu, 25 May 2017 10:49:21 -0700
From: Matthias Kaehlcke <mka@...omium.org>
To: Joe Perches <joe@...ches.com>
Cc: Ingo Molnar <mingo@...nel.org>,
David Rientjes <rientjes@...gle.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Christoph Lameter <cl@...ux.com>,
Pekka Enberg <penberg@...nel.org>,
Joonsoo Kim <iamjoonsoo.kim@....com>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org,
Douglas Anderson <dianders@...omium.org>,
Mark Brown <broonie@...nel.org>,
David Miller <davem@...emloft.net>
Subject: Re: [patch] compiler, clang: suppress warning for unused static
inline functions
Hi Joe,
El Thu, May 25, 2017 at 09:48:53AM -0700 Joe Perches ha dit:
> On Thu, 2017-05-25 at 09:14 -0700, Matthias Kaehlcke wrote:
> > clang doesn't raise
> > warnings about unused static inline functions in headers.
>
> Is any "#include" file a "header" to clang or only "*.h" files?
>
> For instance:
>
> The kernel has ~500 .c files that other .c files #include.
> Are unused inline functions in those .c files reported?
Any "#include" file is a "header" to clang, no warnings are generated
for unused inline functions in included .c files.
Powered by blists - more mailing lists