LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: David Miller <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
Date: Tue, 28 Oct 2008 11:45:24 -0700 (PDT)	[thread overview]
Message-ID: <20081028.114524.89018707.davem@davemloft.net> (raw)
In-Reply-To: <20081028081457.GA19691@ubuntu>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: Text/Plain; charset=utf-8, Size: 1505 bytes --]

From: Jianjun Kong <jianjun@zeuux.org>
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 <jianjun@zeuux.org>
> ---
>  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Ç+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

  reply	other threads:[~2008-10-28 18:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-28  8:14 Jianjun Kong
2008-10-28 18:45 ` David Miller [this message]
2008-10-28  8:35 Jianjun Kong
2008-10-28 10:10 ` Américo Wang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20081028.114524.89018707.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=jianjun@zeuux.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --subject='Re: [PATCH] net: Remove unused variable warning' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).