Message ID | 1389834141-16587-2-git-send-email-umalhi@cisco.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
diff --git a/drivers/infiniband/hw/usnic/usnic_common_util.h b/drivers/infiniband/hw/usnic/usnic_common_util.h index afd8bfa..9d737ed 100644 --- a/drivers/infiniband/hw/usnic/usnic_common_util.h +++ b/drivers/infiniband/hw/usnic/usnic_common_util.h @@ -36,7 +36,7 @@ usnic_mac_to_gid(const char *const mac, char *raw_gid) } static inline void -usnic_mac_ip_to_gid(const char *const mac, const uint32_t inaddr, char *raw_gid) +usnic_mac_ip_to_gid(const char *const mac, const __be32 inaddr, char *raw_gid) { raw_gid[0] = 0xfe; raw_gid[1] = 0x80; diff --git a/drivers/infiniband/hw/usnic/usnic_transport.c b/drivers/infiniband/hw/usnic/usnic_transport.c index 9182cc8..ddef6f7 100644 --- a/drivers/infiniband/hw/usnic/usnic_transport.c +++ b/drivers/infiniband/hw/usnic/usnic_transport.c @@ -59,8 +59,7 @@ int usnic_transport_sock_to_str(char *buf, int buf_sz, if (err) return 0; - addr = htonl(addr); - return scnprintf(buf, buf_sz, "Proto:%u Addr:%pI4 Port:%hu", + return scnprintf(buf, buf_sz, "Proto:%u Addr:%pI4h Port:%hu", proto, &addr, port); }
Fix sparse endianness related warnings. Signed-off-by: Upinder Malhi <umalhi@cisco.com> --- drivers/infiniband/hw/usnic/usnic_common_util.h | 2 +- drivers/infiniband/hw/usnic/usnic_transport.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-)