Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754592AbYJ1SqT (ORCPT ); Tue, 28 Oct 2008 14:46:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753057AbYJ1Spr (ORCPT ); Tue, 28 Oct 2008 14:45:47 -0400 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:52521 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1752949AbYJ1Spq (ORCPT ); Tue, 28 Oct 2008 14:45:46 -0400 Date: Tue, 28 Oct 2008 11:45:24 -0700 (PDT) Message-Id: <20081028.114524.89018707.davem@davemloft.net> To: jianjun@zeuux.org Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] net: Remove unused variable warning From: David Miller In-Reply-To: <20081028081457.GA19691@ubuntu> References: <20081028081457.GA19691@ubuntu> X-Mailer: Mew version 6.1 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=utf-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by alpha id m9SIkedq016830 Content-Length: 1505 Lines: 42 From: Jianjun Kong Date: Tue, 28 Oct 2008 16:14:57 +0800 Please send networking patches at least CC:'d to netdev@vger.kernel.org so that it gets archived properly in patchwork: http://patchwork.ozlabs.org/project/netdev/list/ and thus doesn't get lost. > net: Remove unused variable warning > 'min_ds_timeout' and 'max_ds_timeout' are only used when CONFIG_AX25_DAMA_SLAVE is defined. > > net/ax25/sysctl_net_ax25.c:27: warning: ‘min_ds_timeout’ defined but not used > net/ax25/sysctl_net_ax25.c:27: warning: ‘max_ds_timeout’ defined but not used > > > Signed-off-by: Jianjun Kong > --- > net/ax25/sysctl_net_ax25.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/net/ax25/sysctl_net_ax25.c b/net/ax25/sysctl_net_ax25.c > index f288fc4..735ceef 100644 > --- a/net/ax25/sysctl_net_ax25.c > +++ b/net/ax25/sysctl_net_ax25.c > @@ -24,7 +24,9 @@ static int min_idle[1], max_idle[] = {65535000}; > static int min_n2[] = {1}, max_n2[] = {31}; > static int min_paclen[] = {1}, max_paclen[] = {512}; > static int min_proto[1], max_proto[] = { AX25_PROTO_MAX }; > +#ifdef CONFIG_AX25_DAMA_SLAVE > static int min_ds_timeout[1], max_ds_timeout[] = {65535000}; > +#endif > > static struct ctl_table_header *ax25_table_header; > > -- > 1.5.6.3 > > > ????{.n?+???????+%?????ݶ??w??{.n?+????{??G?????{ay?ʇڙ?,j??f???h?????????z_??(?階?ݢj"???m??????G????????????&???~???iO???z??v?^?m???? ????????I?