public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [nf-next:mmap-netlink 65/68] net/netfilter/nfnetlink_queue_core.c:407:23: warning: unused variable '
@ 2012-07-12 23:51 Fengguang Wu
  2012-07-13  8:37 ` [nf-next:mmap-netlink 65/68] net/netfilter/nfnetlink_queue_core.c:407:23: warning: unused variab Florian Westphal
  2012-07-13  8:50 ` Pablo Neira Ayuso
  0 siblings, 2 replies; 3+ messages in thread
From: Fengguang Wu @ 2012-07-12 23:51 UTC (permalink / raw)
  To: kernel-janitors

Hi Florian,

There are new compile warnings show up in

tree:   git://150.214.188.80/nf-next mmap-netlink
head:   c7e7243d0b69e2323dde057c28f1102d00e5a3c6
commit: b55f8ac10d3ef4c4379afabaa1f766de4d81a8a5 [65/68] nfqueue: extend spinlocked section for mmap'd sockets

All warnings:

net/netfilter/nfnetlink_queue_core.c: In function 'nfqnl_enqueue_packet':
net/netfilter/nfnetlink_queue_core.c:407:23: warning: unused variable 'size' [-Wunused-variable]

vim +407 net/netfilter/nfnetlink_queue_core.c
   404		int err = -ENOBUFS;
   405		int failopen = 0;
   406		struct sk_buff *entskb = entry->skb;
 > 407		size_t data_len = 0, size;
   408	
   409		/* rcu_read_lock()ed by nf_hook_slow() */
   410		queue = instance_lookup(queuenum);

---
0-DAY kernel build testing backend         Open Source Technology Centre
Fengguang Wu <wfg@linux.intel.com>                     Intel Corporation

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [nf-next:mmap-netlink 65/68] net/netfilter/nfnetlink_queue_core.c:407:23: warning: unused variab
  2012-07-12 23:51 [nf-next:mmap-netlink 65/68] net/netfilter/nfnetlink_queue_core.c:407:23: warning: unused variable ' Fengguang Wu
@ 2012-07-13  8:37 ` Florian Westphal
  2012-07-13  8:50 ` Pablo Neira Ayuso
  1 sibling, 0 replies; 3+ messages in thread
From: Florian Westphal @ 2012-07-13  8:37 UTC (permalink / raw)
  To: kernel-janitors

Fengguang Wu <fengguang.wu@intel.com> wrote:
> tree:   git://150.214.188.80/nf-next mmap-netlink
> head:   c7e7243d0b69e2323dde057c28f1102d00e5a3c6
> commit: b55f8ac10d3ef4c4379afabaa1f766de4d81a8a5 [65/68] nfqueue: extend spinlocked section for mmap'd sockets
> 
> All warnings:
> 
> net/netfilter/nfnetlink_queue_core.c: In function 'nfqnl_enqueue_packet':
> net/netfilter/nfnetlink_queue_core.c:407:23: warning: unused variable 'size' [-Wunused-variable]

Thanks for reporting.

Pablo, please consider squashing this in with the original patch
before submitting for inclusion:

From: Florian Westphal <fw@strlen.de>
Date: Fri, 13 Jul 2012 09:59:30 +0200
Subject: [PATCH] netfilter: nf_queue: kill unused variable

In function 'nfqnl_enqueue_packet':
warning: unused variable 'size' [-Wunused-variable]

caused by commit b55f8ac10d3ef4c4379afabaa1f766de4d81a8a5
(nfqueue: extend spinlocked section for mmap'd sockets)

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
---
 net/netfilter/nfnetlink_queue_core.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/net/netfilter/nfnetlink_queue_core.c b/net/netfilter/nfnetlink_queue_core.c
index 82bcced..09c85d0 100644
--- a/net/netfilter/nfnetlink_queue_core.c
+++ b/net/netfilter/nfnetlink_queue_core.c
@@ -404,7 +404,7 @@ nfqnl_enqueue_packet(struct nf_queue_entry *entry, unsigned int queuenum)
 	int err = -ENOBUFS;
 	int failopen = 0;
 	struct sk_buff *entskb = entry->skb;
-	size_t data_len = 0, size;
+	size_t data_len = 0;
 
 	/* rcu_read_lock()ed by nf_hook_slow() */
 	queue = instance_lookup(queuenum);
-- 
1.7.3.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [nf-next:mmap-netlink 65/68] net/netfilter/nfnetlink_queue_core.c:407:23: warning: unused variab
  2012-07-12 23:51 [nf-next:mmap-netlink 65/68] net/netfilter/nfnetlink_queue_core.c:407:23: warning: unused variable ' Fengguang Wu
  2012-07-13  8:37 ` [nf-next:mmap-netlink 65/68] net/netfilter/nfnetlink_queue_core.c:407:23: warning: unused variab Florian Westphal
@ 2012-07-13  8:50 ` Pablo Neira Ayuso
  1 sibling, 0 replies; 3+ messages in thread
From: Pablo Neira Ayuso @ 2012-07-13  8:50 UTC (permalink / raw)
  To: kernel-janitors

On Fri, Jul 13, 2012 at 10:37:19AM +0200, Florian Westphal wrote:
> Fengguang Wu <fengguang.wu@intel.com> wrote:
> > tree:   git://150.214.188.80/nf-next mmap-netlink
> > head:   c7e7243d0b69e2323dde057c28f1102d00e5a3c6
> > commit: b55f8ac10d3ef4c4379afabaa1f766de4d81a8a5 [65/68] nfqueue: extend spinlocked section for mmap'd sockets
> > 
> > All warnings:
> > 
> > net/netfilter/nfnetlink_queue_core.c: In function 'nfqnl_enqueue_packet':
> > net/netfilter/nfnetlink_queue_core.c:407:23: warning: unused variable 'size' [-Wunused-variable]
> 
> Thanks for reporting.
> 
> Pablo, please consider squashing this in with the original patch
> before submitting for inclusion:
> 
> From: Florian Westphal <fw@strlen.de>
> Date: Fri, 13 Jul 2012 09:59:30 +0200
> Subject: [PATCH] netfilter: nf_queue: kill unused variable
> 
> In function 'nfqnl_enqueue_packet':
> warning: unused variable 'size' [-Wunused-variable]
> 
> caused by commit b55f8ac10d3ef4c4379afabaa1f766de4d81a8a5
> (nfqueue: extend spinlocked section for mmap'd sockets)
> 
> Reported-by: Fengguang Wu <fengguang.wu@intel.com>
> Signed-off-by: Florian Westphal <fw@strlen.de>

Thanks Florian, I'll do.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-07-13  8:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-12 23:51 [nf-next:mmap-netlink 65/68] net/netfilter/nfnetlink_queue_core.c:407:23: warning: unused variable ' Fengguang Wu
2012-07-13  8:37 ` [nf-next:mmap-netlink 65/68] net/netfilter/nfnetlink_queue_core.c:407:23: warning: unused variab Florian Westphal
2012-07-13  8:50 ` Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox