Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net/sched: avoid unused-label warning

The label is only used from inside the #ifdef and should be
hidden the same way, to avoid this warning:

net/sched/act_tunnel_key.c: In function 'tunnel_key_init':
net/sched/act_tunnel_key.c:389:1: error: label 'release_tun_meta' defined but not used [-Werror=unused-label]
release_tun_meta:

Fixes: 41411e2fd6b8 ("net/sched: act_tunnel_key: Add dst_cache support")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Arnd Bergmann and committed by
David S. Miller
096461de a154d5d8

+1 -1
+1 -1
net/sched/act_tunnel_key.c
··· 392 392 #ifdef CONFIG_DST_CACHE 393 393 if (metadata) 394 394 dst_cache_destroy(&metadata->u.tun_info.dst_cache); 395 - #endif 396 395 release_tun_meta: 396 + #endif 397 397 if (metadata) 398 398 dst_release(&metadata->dst); 399 399