Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1240868 > unrolled thread
| Started by | Nikolay Aleksandrov <nikolay@cumulusnetworks.com> |
|---|---|
| First post | 2015-10-06 21:30 +0200 |
| Last post | 2015-10-06 23:10 +0200 |
| Articles | 3 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH] bridge/netfilter: avoid unused label warning Nikolay Aleksandrov <nikolay@cumulusnetworks.com> - 2015-10-06 21:30 +0200
Re: [PATCH] bridge/netfilter: avoid unused label warning Arnd Bergmann <arnd@arndb.de> - 2015-10-06 21:50 +0200
Re: [PATCH] bridge/netfilter: avoid unused label warning Nikolay Aleksandrov <nikolay@cumulusnetworks.com> - 2015-10-06 23:10 +0200
| From | Nikolay Aleksandrov <nikolay@cumulusnetworks.com> |
|---|---|
| Date | 2015-10-06 21:30 +0200 |
| Subject | Re: [PATCH] bridge/netfilter: avoid unused label warning |
| Message-ID | <qgG5X-73b-1@gated-at.bofh.it> |
On 10/06/2015 09:22 PM, Arnd Bergmann wrote:
> With the ARM mini2440_defconfig, the bridge netfilter code gets
> built with both CONFIG_NF_DEFRAG_IPV4 and CONFIG_NF_DEFRAG_IPV6
> disabled, which leads to a harmless gcc warning:
>
> net/bridge/br_netfilter_hooks.c: In function 'br_nf_dev_queue_xmit':
> net/bridge/br_netfilter_hooks.c:792:2: warning: label 'drop' defined but not used [-Wunused-label]
>
> This gets rid of the warning by cleaning up the code to avoid
> the respective #ifdefs causing this problem, and replacing them
> with if(IS_ENABLED()) checks. I have verified that the resulting
> object code is unchanged, and an additional advantage is that
> we now get compile coverage of the unused functions in more
> configurations.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Fixes: dd302b59bde0 ("netfilter: bridge: don't leak skb in error paths")
>
I posted a fix for this a couple of days ago, but I like your approach better.
Since mine is not yet applied (I sent it to netfilter-devel only, wasn't sure which
jurisdiction this falls into exactly) we can drop it.
Just for reference my patch is here:
http://patchwork.ozlabs.org/patch/526417/
Pablo, could you please drop it ?
By the way this takes care of another warning about unused variable (nf_bridge), too.
So,
Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Date | 2015-10-06 21:50 +0200 |
| Message-ID | <qgGpk-7pK-17@gated-at.bofh.it> |
| In reply to | #1240868 |
On Tuesday 06 October 2015 21:28:29 Nikolay Aleksandrov wrote: > I posted a fix for this a couple of days ago, but I like your approach better. > Since mine is not yet applied (I sent it to netfilter-devel only, wasn't sure which > jurisdiction this falls into exactly) we can drop it. > Just for reference my patch is here: > http://patchwork.ozlabs.org/patch/526417/ > Pablo, could you please drop it ? > > By the way this takes care of another warning about unused variable (nf_bridge), too. Hmm I did not get that one, at least not in 4.3-rc4. > Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com> Thanks and sorry for missing the Cc to the netfilter list on my patch. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Nikolay Aleksandrov <nikolay@cumulusnetworks.com> |
|---|---|
| Date | 2015-10-06 23:10 +0200 |
| Message-ID | <qgHEK-11w-1@gated-at.bofh.it> |
| In reply to | #1240893 |
On 10/06/2015 09:39 PM, Arnd Bergmann wrote: > On Tuesday 06 October 2015 21:28:29 Nikolay Aleksandrov wrote: >> I posted a fix for this a couple of days ago, but I like your approach better. >> Since mine is not yet applied (I sent it to netfilter-devel only, wasn't sure which >> jurisdiction this falls into exactly) we can drop it. >> Just for reference my patch is here: >> http://patchwork.ozlabs.org/patch/526417/ >> Pablo, could you please drop it ? >> >> By the way this takes care of another warning about unused variable (nf_bridge), too. > > Hmm I did not get that one, at least not in 4.3-rc4. > You need to set W=1 $ git describe --abbrev=0 v4.3-rc4 net/bridge//br_netfilter_hooks.c: In function ‘br_nf_dev_queue_xmit’: net/bridge//br_netfilter_hooks.c:794:2: warning: label ‘drop’ defined but not used [-Wunused-label] drop: ^ net/bridge//br_netfilter_hooks.c:727:25: warning: variable ‘nf_bridge’ set but not used [-Wunused-but-set-variable] struct nf_bridge_info *nf_bridge; Cheers, Nik >> Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com> > > Thanks and sorry for missing the Cc to the netfilter list on my patch. > > Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web