[ewg] [PATCH] RDMA/CMA: fix compilation warning cma.c:2076

Chien Tung chien.tin.tung at intel.com
Wed Apr 1 00:52:43 PDT 2009


Add a cast to struct sockaddr * for argument to ip_addr_size().

Signed-off-by: Chien Tung <chien.tin.tung at intel.com>
---
 .../fixes/cma_0100_unified_tcp_ports.patch         |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel_patches/fixes/cma_0100_unified_tcp_ports.patch b/kernel_patches/fixes/cma_0100_unified_tcp_ports.patch
index 9b4bc07..e79bee3 100644
--- a/kernel_patches/fixes/cma_0100_unified_tcp_ports.patch
+++ b/kernel_patches/fixes/cma_0100_unified_tcp_ports.patch
@@ -69,7 +69,7 @@ Index: ofed_kernel/drivers/infiniband/core/cma.c
 +		sock_release(sock);
 +		return ret;
 +	}
-+	size = ip_addr_size(&id_priv->id.route.addr.src_addr);
++	size = ip_addr_size((struct sockaddr *) &id_priv->id.route.addr.src_addr);
 +	ret = sock->ops->getname(sock,
 +			(struct sockaddr *) &id_priv->id.route.addr.src_addr,
 +			&size, 0);
-- 
1.5.3.3




More information about the ewg mailing list