linux-rdma.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] rdma/siw: Use proper enumerated type in map_cqe_status
@ 2019-07-10 17:48 Nathan Chancellor
  2019-07-10 18:26 ` Jason Gunthorpe
  2019-07-11  7:44 ` Bernard Metzler
  0 siblings, 2 replies; 19+ messages in thread
From: Nathan Chancellor @ 2019-07-10 17:48 UTC (permalink / raw)
  To: Bernard Metzler, Doug Ledford, Jason Gunthorpe
  Cc: linux-rdma, linux-kernel, clang-built-linux, Nathan Chancellor

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>
---
 drivers/infiniband/sw/siw/siw_cq.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/sw/siw/siw_cq.c b/drivers/infiniband/sw/siw/siw_cq.c
index e2a0ee40d5b5..e381ae9b7d62 100644
--- a/drivers/infiniband/sw/siw/siw_cq.c
+++ b/drivers/infiniband/sw/siw/siw_cq.c
@@ -25,7 +25,7 @@ static int map_wc_opcode[SIW_NUM_OPCODES] = {
 };
 
 static struct {
-	enum siw_opcode siw;
+	enum siw_wc_status siw;
 	enum ib_wc_status ib;
 } map_cqe_status[SIW_NUM_WC_STATUS] = {
 	{ SIW_WC_SUCCESS, IB_WC_SUCCESS },
-- 
2.22.0


^ permalink raw reply related	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2019-08-27 22:50 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-10 17:48 [PATCH] rdma/siw: Use proper enumerated type in map_cqe_status Nathan Chancellor
2019-07-10 18:26 ` Jason Gunthorpe
2019-07-10 23:53   ` Nick Desaulniers
2019-07-11  3:02     ` Nathan Chancellor
2019-07-11  7:44 ` Bernard Metzler
2019-07-11  8:14   ` Nathan Chancellor
2019-07-11 13:39     ` Jason Gunthorpe
2019-07-11 17:16       ` Nick Desaulniers
2019-07-11 17:18         ` Jason Gunthorpe
2019-07-11 17:30           ` Nathan Chancellor
2019-08-23 14:24             ` Jason Gunthorpe
2019-08-26 15:38               ` Nathan Chancellor
2019-08-26 15:42                 ` Jason Gunthorpe
2019-08-26 23:38                   ` Nathan Chancellor
2019-08-27 15:08                     ` Josh Poimboeuf
2019-08-27 17:00                       ` Leon Romanovsky
2019-08-27 19:23                         ` Josh Poimboeuf
2019-08-27 21:27                           ` Nick Desaulniers
2019-08-27 22:50                             ` Nick Desaulniers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).