OSDN Git Service

rdma/siw: Use proper enumerated type in map_cqe_status
authorNathan Chancellor <natechancellor@gmail.com>
Wed, 10 Jul 2019 17:48:00 +0000 (10:48 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 10 Jul 2019 18:25:30 +0000 (15:25 -0300)
commit775a41e281cf08b1d9e0f2dd89c062430b289a10
treec6cfbc92e4edb9c9d6c4ee3bea81a01a6bce9e20
parent85de5d53366f02dd0f81c9be8f435b27fb82b1f7
rdma/siw: Use proper enumerated type in map_cqe_status

clang warns several times:

drivers/infiniband/sw/siw/siw_cq.c:31:4: warning: implicit conversion
from enumeration type 'enum siw_wc_status' to different enumeration type
'enum siw_opcode' [-Wenum-conversion]
        { SIW_WC_SUCCESS, IB_WC_SUCCESS },
        ~ ^~~~~~~~~~~~~~

Fixes: b0fff7317bb4 ("rdma/siw: completion queue methods")
Link: https://github.com/ClangBuiltLinux/linux/issues/596
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/sw/siw/siw_cq.c