Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752119AbaJFV4Q (ORCPT ); Mon, 6 Oct 2014 17:56:16 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:38567 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750956AbaJFV4P (ORCPT ); Mon, 6 Oct 2014 17:56:15 -0400 Date: Mon, 06 Oct 2014 17:56:12 -0400 (EDT) Message-Id: <20141006.175612.1709169088283433326.davem@davemloft.net> To: joe@perches.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, john.fastabend@gmail.com Subject: Re: [PATCH net-next] net: core: Quiet W=1 warnings for unused vars and static functions From: David Miller In-Reply-To: <1412632298.2916.42.camel@joe-AO725> References: <1412632298.2916.42.camel@joe-AO725> X-Mailer: Mew version 6.5 on Emacs 24.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.7 (shards.monkeyblade.net [149.20.54.216]); Mon, 06 Oct 2014 14:56:15 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Joe Perches Date: Mon, 06 Oct 2014 14:51:38 -0700 > Reduce noise when compiling W=1. > > All the variables are unused. > The functions are not called outside of the file so static > is preferred. > > Signed-off-by: Joe Perches > --- > > John, can you please verify that these gen_stats accesses > are unnecessary? I believe the compiler can elide them in > any case, but I'm not sure what you intended here. BTW, this patch reminds me that if people think there are subdirectories where we can turn on things like -Werror in the networking I would be very happy to apply such patches. Things like arch/sparc has had this for years, I even forget when I added it. :-) Things like net/core/ for example should be doable for sure. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/