[PATCH] sctp: fix warning when compiling without IPv6

Subsystems: networking [general], sctp protocol, the rest

STALE5177d

2 messages, 2 authors, 2012-06-19 · open the first message on its own page

[PATCH] sctp: fix warning when compiling without IPv6

From: Daniel Halperin <hidden>
Date: 2012-06-18 21:04:59

net/sctp/protocol.c: In function ‘sctp_addr_wq_timeout_handler’:
net/sctp/protocol.c:676: warning: label ‘free_next’ defined but not used

Signed-off-by: Daniel Halperin <redacted>
---
 net/sctp/protocol.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c
index 5942d27..9c90811 100644
--- a/net/sctp/protocol.c
+++ b/net/sctp/protocol.c
@@ -673,7 +673,9 @@ void sctp_addr_wq_timeout_handler(unsigned long arg)
 				SCTP_DEBUG_PRINTK("sctp_addrwq_timo_handler: sctp_asconf_mgmt failed\n");
 			sctp_bh_unlock_sock(sk);
 		}
+#if IS_ENABLED(CONFIG_IPV6)
 free_next:
+#endif
 		list_del(&addrw->list);
 		kfree(addrw);
 	}
-- 
1.7.0.4

Re: [PATCH] sctp: fix warning when compiling without IPv6

From: David Miller <davem@davemloft.net>
Date: 2012-06-19 07:28:12

From: Daniel Halperin <redacted>
Date: Mon, 18 Jun 2012 14:04:55 -0700
net/sctp/protocol.c: In function ‘sctp_addr_wq_timeout_handler’:
net/sctp/protocol.c:676: warning: label ‘free_next’ defined but not used

Signed-off-by: Daniel Halperin <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help