Skip to contentSkip to conversation

linux-next: build warning after merge of the rdma tree

DISCUSSION Stephen Rothwell 1 participant 1 message Feb 14, 2019 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the rdma tree, today's linux-next build (x86_64 allmodconfig) produced this warning:

drivers/infiniband/hw/hfi1/tid_rdma.c: In function 'hfi1_tid_rdma_wqe_interlock':
drivers/infiniband/hw/hfi1/tid_rdma.c:3251:3: warning: this statement may fall through [-Wimplicit-fallthrough=]
switch (prev->wr.opcode) {
^~~~~~
drivers/infiniband/hw/hfi1/tid_rdma.c:3259:2: note: here
case IB_WR_RDMA_READ:
^~~~

Introduced by commit

c6c231175ccd ("IB/hfi1: Add interlock between TID RDMA WRITE and other requests")

I get this warning because I am building with -Wimplicit-fallthrough in attempt to catch new additions early. The gcc warning can be turned off by adding a /* fall through */ comment at the point the fall through happens (assuming that the fall through is intentional).

Signature · 2 lines
Cheers,
Stephen Rothwell