Commit 775a41e2 authored by Nathan Chancellor's avatar Nathan Chancellor Committed by Jason Gunthorpe

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: b0fff731 ("rdma/siw: completion queue methods")
Link: https://github.com/ClangBuiltLinux/linux/issues/596Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
Reviewed-by: default avatarJason Gunthorpe <jgg@mellanox.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent 85de5d53
...@@ -25,7 +25,7 @@ static int map_wc_opcode[SIW_NUM_OPCODES] = { ...@@ -25,7 +25,7 @@ static int map_wc_opcode[SIW_NUM_OPCODES] = {
}; };
static struct { static struct {
enum siw_opcode siw; enum siw_wc_status siw;
enum ib_wc_status ib; enum ib_wc_status ib;
} map_cqe_status[SIW_NUM_WC_STATUS] = { } map_cqe_status[SIW_NUM_WC_STATUS] = {
{ SIW_WC_SUCCESS, IB_WC_SUCCESS }, { SIW_WC_SUCCESS, IB_WC_SUCCESS },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment