]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
fix warning about bitwise or between u32 and size_t
authorHaggai Eran <haggaie@mellanox.com>
Thu, 1 May 2014 07:12:31 +0000 (10:12 +0300)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 7 Jul 2015 21:45:20 +0000 (14:45 -0700)
(Ported from Mellanox OFED 2.4)

Signed-off-by: Mukesh Kacker <mukesh.kacker@oracle.com>
drivers/infiniband/hw/mlx4/qp.c

index 975d488b19e6d8bd160a3c582fc3f8c021640094..a00000bcd1cf1f0354d99bdbbc68a608d6986509 100644 (file)
@@ -2566,7 +2566,7 @@ static void build_tunnel_header(struct ib_send_wr *wr, void *wqe, unsigned *mlx_
        if (sizeof (hdr) <= spc) {
                memcpy(inl + 1, &hdr, sizeof (hdr));
                wmb();
-               inl->byte_count = cpu_to_be32(1 << 31 | sizeof (hdr));
+               inl->byte_count = cpu_to_be32(1 << 31 | (u32)sizeof (hdr));
                i = 1;
        } else {
                memcpy(inl + 1, &hdr, spc);