From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bart Van Assche Subject: [PATCH] IB/core: Suppress a sparse warning Date: Mon, 10 Mar 2014 13:22:57 +0100 Message-ID: <531DAEA1.7060703@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Roland Dreier Cc: Moni Shoua , Or Gerlitz , linux-rdma List-Id: linux-rdma@vger.kernel.org Suppress the following sparse warning: include/rdma/ib_addr.h:187:24: warning: cast removes address space of expression Signed-off-by: Bart Van Assche Cc: Moni Shoua Cc: Or Gerlitz Cc: Roland Dreier --- include/rdma/ib_addr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rdma/ib_addr.h b/include/rdma/ib_addr.h index ce55906..bf11511 100644 --- a/include/rdma/ib_addr.h +++ b/include/rdma/ib_addr.h @@ -184,7 +184,7 @@ static inline void iboe_addr_get_sgid(struct rdma_dev_addr *dev_addr, dev = dev_get_by_index(&init_net, dev_addr->bound_dev_if); if (dev) { - ip4 = (struct in_device *)dev->ip_ptr; + ip4 = (__force struct in_device *)dev->ip_ptr; if (ip4 && ip4->ifa_list && ip4->ifa_list->ifa_address) ipv6_addr_set_v4mapped(ip4->ifa_list->ifa_address, (struct in6_addr *)gid); -- 1.8.4.5 -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html