LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] net: Remove unused variable warning
@ 2008-10-28 8:14 Jianjun Kong
2008-10-28 18:45 ` David Miller
0 siblings, 1 reply; 4+ messages in thread
From: Jianjun Kong @ 2008-10-28 8:14 UTC (permalink / raw)
To: David S. Miller; +Cc: Linux-Kernel-Mailing-List
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] net: Remove unused variable warning
2008-10-28 8:14 [PATCH] net: Remove unused variable warning Jianjun Kong
@ 2008-10-28 18:45 ` David Miller
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2008-10-28 18:45 UTC (permalink / raw)
To: jianjun; +Cc: linux-kernel, netdev
[-- 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¥
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] net: Remove unused variable warning
2008-10-28 8:35 Jianjun Kong
@ 2008-10-28 10:10 ` Américo Wang
0 siblings, 0 replies; 4+ messages in thread
From: Américo Wang @ 2008-10-28 10:10 UTC (permalink / raw)
To: Jianjun Kong; +Cc: David S. Miller, Linux-Kernel-Mailing-List
On Tue, Oct 28, 2008 at 04:35:12PM +0800, Jianjun Kong wrote:
>
>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(-)
>
http://www.gossamer-threads.com/lists/linux/kernel/985658
--
"Sometimes the only way to stay sane is to go a little crazy."
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] net: Remove unused variable warning
@ 2008-10-28 8:35 Jianjun Kong
2008-10-28 10:10 ` Américo Wang
0 siblings, 1 reply; 4+ messages in thread
From: Jianjun Kong @ 2008-10-28 8:35 UTC (permalink / raw)
To: David S. Miller; +Cc: Linux-Kernel-Mailing-List
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-10-28 18:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-28 8:14 [PATCH] net: Remove unused variable warning Jianjun Kong
2008-10-28 18:45 ` David Miller
2008-10-28 8:35 Jianjun Kong
2008-10-28 10:10 ` Américo Wang
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).