From: Florian Westphal <fw@strlen.de>
To: kernel-janitors@vger.kernel.org
Subject: Re: [nf-next:mmap-netlink 65/68] net/netfilter/nfnetlink_queue_core.c:407:23: warning: unused variab
Date: Fri, 13 Jul 2012 08:37:19 +0000 [thread overview]
Message-ID: <20120713083719.GC9927@breakpoint.cc> (raw)
In-Reply-To: <20120712235145.GD5608@localhost>
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
next prev parent reply other threads:[~2012-07-13 8:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2012-07-13 8:50 ` [nf-next:mmap-netlink 65/68] net/netfilter/nfnetlink_queue_core.c:407:23: warning: unused variab Pablo Neira Ayuso
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=20120713083719.GC9927@breakpoint.cc \
--to=fw@strlen.de \
--cc=kernel-janitors@vger.kernel.org \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.