From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S970122AbdEYRtZ (ORCPT ); Thu, 25 May 2017 13:49:25 -0400 Received: from mail-io0-f179.google.com ([209.85.223.179]:34265 "EHLO mail-io0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762356AbdEYRtY (ORCPT ); Thu, 25 May 2017 13:49:24 -0400 Date: Thu, 25 May 2017 10:49:21 -0700 From: Matthias Kaehlcke To: Joe Perches Cc: Ingo Molnar , David Rientjes , Andrew Morton , Christoph Lameter , Pekka Enberg , Joonsoo Kim , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Douglas Anderson , Mark Brown , David Miller Subject: Re: [patch] compiler, clang: suppress warning for unused static inline functions Message-ID: <20170525174921.GU141096@google.com> References: <20170524212229.GR141096@google.com> <20170525055207.udcphnshuzl2gkps@gmail.com> <20170525161406.GT141096@google.com> <1495730933.29207.6.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1495730933.29207.6.camel@perches.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.