diff options
author | Arnd Bergmann <arnd@arndb.de> | 2015-10-08 14:30:15 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-10-12 17:48:36 +0200 |
commit | c9322458119ecf2e5cf41dcb204aaf67238b2147 (patch) | |
tree | 5c1d75fba05309fb823371b4a08a46c408be581d /net/netfilter | |
parent | d53195c25931a1f662f73488e604b85bc803c8f3 (diff) | |
download | linux-stable-c9322458119ecf2e5cf41dcb204aaf67238b2147.tar.gz linux-stable-c9322458119ecf2e5cf41dcb204aaf67238b2147.tar.bz2 linux-stable-c9322458119ecf2e5cf41dcb204aaf67238b2147.zip |
netfilter: bridge: avoid unused label warning
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")
Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter')
0 files changed, 0 insertions, 0 deletions