diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/infiniband/core/addr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/core/addr.c b/drivers/infiniband/core/addr.c index 9cbf09e2052f..60d3fbdd216c 100644 --- a/drivers/infiniband/core/addr.c +++ b/drivers/infiniband/core/addr.c | |||
@@ -86,7 +86,7 @@ EXPORT_SYMBOL(rdma_copy_addr); | |||
86 | int rdma_translate_ip(struct sockaddr *addr, struct rdma_dev_addr *dev_addr) | 86 | int rdma_translate_ip(struct sockaddr *addr, struct rdma_dev_addr *dev_addr) |
87 | { | 87 | { |
88 | struct net_device *dev; | 88 | struct net_device *dev; |
89 | u32 ip = ((struct sockaddr_in *) addr)->sin_addr.s_addr; | 89 | __be32 ip = ((struct sockaddr_in *) addr)->sin_addr.s_addr; |
90 | int ret; | 90 | int ret; |
91 | 91 | ||
92 | dev = ip_dev_find(ip); | 92 | dev = ip_dev_find(ip); |
@@ -239,7 +239,7 @@ static int addr_resolve_local(struct sockaddr_in *src_in, | |||
239 | { | 239 | { |
240 | struct net_device *dev; | 240 | struct net_device *dev; |
241 | u32 src_ip = src_in->sin_addr.s_addr; | 241 | u32 src_ip = src_in->sin_addr.s_addr; |
242 | u32 dst_ip = dst_in->sin_addr.s_addr; | 242 | __be32 dst_ip = dst_in->sin_addr.s_addr; |
243 | int ret; | 243 | int ret; |
244 | 244 | ||
245 | dev = ip_dev_find(dst_ip); | 245 | dev = ip_dev_find(dst_ip); |