netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net] net: ipv6mr: fix unused variable warning with CONFIG_IPV6_PIMSM_V2=n
@ 2022-04-06 10:04 Florian Westphal
  2022-04-06 14:20 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Florian Westphal @ 2022-04-06 10:04 UTC (permalink / raw)
  To: netdev; +Cc: Florian Westphal

net/ipv6/ip6mr.c:1656:14: warning: unused variable 'do_wrmifwhole'

Move it to the CONFIG_IPV6_PIMSM_V2 scope where its used.

Fixes: 4b340a5a726d ("net: ip6mr: add support for passing full packet on wrong mif")
Signed-off-by: Florian Westphal <fw@strlen.de>
---
 net/ipv6/ip6mr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c
index a9775c830194..4e74bc61a3db 100644
--- a/net/ipv6/ip6mr.c
+++ b/net/ipv6/ip6mr.c
@@ -1653,7 +1653,6 @@ int ip6_mroute_setsockopt(struct sock *sk, int optname, sockptr_t optval,
 	mifi_t mifi;
 	struct net *net = sock_net(sk);
 	struct mr_table *mrt;
-	bool do_wrmifwhole;
 
 	if (sk->sk_type != SOCK_RAW ||
 	    inet_sk(sk)->inet_num != IPPROTO_ICMPV6)
@@ -1761,6 +1760,7 @@ int ip6_mroute_setsockopt(struct sock *sk, int optname, sockptr_t optval,
 #ifdef CONFIG_IPV6_PIMSM_V2
 	case MRT6_PIM:
 	{
+		bool do_wrmifwhole;
 		int v;
 
 		if (optlen != sizeof(v))
-- 
2.35.1


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

* Re: [PATCH net] net: ipv6mr: fix unused variable warning with CONFIG_IPV6_PIMSM_V2=n
  2022-04-06 10:04 [PATCH net] net: ipv6mr: fix unused variable warning with CONFIG_IPV6_PIMSM_V2=n Florian Westphal
@ 2022-04-06 14:20 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-04-06 14:20 UTC (permalink / raw)
  To: Florian Westphal; +Cc: netdev

Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller <davem@davemloft.net>:

On Wed,  6 Apr 2022 12:04:45 +0200 you wrote:
> net/ipv6/ip6mr.c:1656:14: warning: unused variable 'do_wrmifwhole'
> 
> Move it to the CONFIG_IPV6_PIMSM_V2 scope where its used.
> 
> Fixes: 4b340a5a726d ("net: ip6mr: add support for passing full packet on wrong mif")
> Signed-off-by: Florian Westphal <fw@strlen.de>
> 
> [...]

Here is the summary with links:
  - [net] net: ipv6mr: fix unused variable warning with CONFIG_IPV6_PIMSM_V2=n
    https://git.kernel.org/netdev/net/c/a3ebe92a0f2d

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



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

end of thread, other threads:[~2022-04-06 16:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-06 10:04 [PATCH net] net: ipv6mr: fix unused variable warning with CONFIG_IPV6_PIMSM_V2=n Florian Westphal
2022-04-06 14:20 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).