From 7791086ba6b4929a7bcbd040737dddf647d5ecc4 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Tue, 11 Aug 2015 22:02:27 +0000 Subject: [PATCH] iscsi-scst: Fix the build for CONFIG_IPV6=n Signed-off-by: Igor Novgorodov git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.0.x@6473 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/iscsi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iscsi-scst/kernel/iscsi.c b/iscsi-scst/kernel/iscsi.c index 68eac2d9f..ade1528a3 100644 --- a/iscsi-scst/kernel/iscsi.c +++ b/iscsi-scst/kernel/iscsi.c @@ -3279,6 +3279,7 @@ static ssize_t iscsi_tcp_get_initiator_ip(struct iscsi_conn *conn, "%pI4", &inet_sk(sk)->inet_daddr); #endif break; +#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) case AF_INET6: #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 29) pos = scnprintf(buf, size, @@ -3293,6 +3294,7 @@ static ssize_t iscsi_tcp_get_initiator_ip(struct iscsi_conn *conn, #endif #endif break; +#endif default: pos = scnprintf(buf, size, "Unknown family %d", sk->sk_family);