]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
IB/rxe: Prefer 'unsigned int' to bare use of 'unsigned'
authorKamal Heib <kamalheib1@gmail.com>
Thu, 15 Jun 2017 08:29:04 +0000 (11:29 +0300)
committerDoug Ledford <dledford@redhat.com>
Mon, 24 Jul 2017 12:43:12 +0000 (08:43 -0400)
Signed-off-by: Kamal Heib <kamalh@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/sw/rxe/rxe_loc.h
drivers/infiniband/sw/rxe/rxe_pool.c
drivers/infiniband/sw/rxe/rxe_req.c

index d6299edf9a5bbb87178c5059944319e10da8fca3..6b65c0132289016500b85645bdfe679e7a64e141 100644 (file)
@@ -250,7 +250,7 @@ void rxe_resp_queue_pkt(struct rxe_dev *rxe,
 void rxe_comp_queue_pkt(struct rxe_dev *rxe,
                        struct rxe_qp *qp, struct sk_buff *skb);
 
-static inline unsigned wr_opcode_mask(int opcode, struct rxe_qp *qp)
+static inline unsigned int wr_opcode_mask(int opcode, struct rxe_qp *qp)
 {
        return rxe_wr_opcode_info[opcode].mask[qp->ibqp.qp_type];
 }
index 75d11ee635ec2e28ff9278a9b4fb20f2ffc4cdd7..c1b5f38f31a58f48ad94aab049c8635c2bca55cb 100644 (file)
@@ -188,7 +188,7 @@ int rxe_pool_init(
        struct rxe_dev          *rxe,
        struct rxe_pool         *pool,
        enum rxe_elem_type      type,
-       unsigned                max_elem)
+       unsigned int            max_elem)
 {
        int                     err = 0;
        size_t                  size = rxe_type_info[type].size;
index 7ee465d1a1e116a26b721d474946e1e5cd84269d..db7161456f45cfed62e4c9f2c6cf32f018ecca1f 100644 (file)
@@ -43,7 +43,7 @@ static int next_opcode(struct rxe_qp *qp, struct rxe_send_wqe *wqe,
 
 static inline void retry_first_write_send(struct rxe_qp *qp,
                                          struct rxe_send_wqe *wqe,
-                                         unsigned mask, int npsn)
+                                         unsigned int mask, int npsn)
 {
        int i;