From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S942715AbdEYQtB (ORCPT ); Thu, 25 May 2017 12:49:01 -0400 Received: from smtprelay0016.hostedemail.com ([216.40.44.16]:50140 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933221AbdEYQs6 (ORCPT ); Thu, 25 May 2017 12:48:58 -0400 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::::,RULES_HIT:41:355:379:541:599:988:989:1260:1277:1311:1313:1314:1345:1359:1373:1437:1515:1516:1518:1534:1537:1566:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3622:3865:3867:3870:3871:3874:4321:5007:10004:10400:10848:11658:11914:12679:12740:12760:12895:13069:13161:13229:13255:13311:13357:13439:14659:21080:21451:21627:30054:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:13,LUA_SUMMARY:none X-HE-Tag: roll72_8810f146c295b X-Filterd-Recvd-Size: 1585 Message-ID: <1495730933.29207.6.camel@perches.com> Subject: Re: [patch] compiler, clang: suppress warning for unused static inline functions From: Joe Perches To: Matthias Kaehlcke , Ingo Molnar Cc: 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 Date: Thu, 25 May 2017 09:48:53 -0700 In-Reply-To: <20170525161406.GT141096@google.com> References: <20170524212229.GR141096@google.com> <20170525055207.udcphnshuzl2gkps@gmail.com> <20170525161406.GT141096@google.com> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.22.6-1ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-it0-f71.google.com (mail-it0-f71.google.com [209.85.214.71]) by kanga.kvack.org (Postfix) with ESMTP id E5ED96B0279 for ; Thu, 25 May 2017 12:48:58 -0400 (EDT) Received: by mail-it0-f71.google.com with SMTP id i206so141744027ita.10 for ; Thu, 25 May 2017 09:48:58 -0700 (PDT) Received: from smtprelay.hostedemail.com (smtprelay0193.hostedemail.com. [216.40.44.193]) by mx.google.com with ESMTPS id 79si29476707ior.125.2017.05.25.09.48.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 May 2017 09:48:58 -0700 (PDT) Message-ID: <1495730933.29207.6.camel@perches.com> Subject: Re: [patch] compiler, clang: suppress warning for unused static inline functions From: Joe Perches Date: Thu, 25 May 2017 09:48:53 -0700 In-Reply-To: <20170525161406.GT141096@google.com> References: <20170524212229.GR141096@google.com> <20170525055207.udcphnshuzl2gkps@gmail.com> <20170525161406.GT141096@google.com> Content-Type: text/plain; charset="ISO-8859-1" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Matthias Kaehlcke , Ingo Molnar Cc: 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 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? -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org