From: Gustavo A. R. Silva Date: Fri, 20 Nov 2020 18:28:56 +0000 (-0600) Subject: IB/qedr: Fix fall-through warnings for Clang X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=c6191f83be6a9d671c5e9bff99e5d03e338252f8;p=linux.git IB/qedr: Fix fall-through warnings for Clang In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of just letting the code fall through to the next case. Link: https://lore.kernel.org/r/8d7cf00ec3a4b27a895534e02077c2c9ed8a5f8e.1605896059.git.gustavoars@kernel.org Link: https://github.com/KSPP/linux/issues/115 Signed-off-by: Gustavo A. R. Silva Acked-by: Michal KalderonĀ  Signed-off-by: Jason Gunthorpe --- diff --git a/drivers/infiniband/hw/qedr/main.c b/drivers/infiniband/hw/qedr/main.c index e8b812bb3a7ac..8e7c069e1a2d4 100644 --- a/drivers/infiniband/hw/qedr/main.c +++ b/drivers/infiniband/hw/qedr/main.c @@ -766,6 +766,7 @@ static void qedr_affiliated_event(void *context, u8 e_code, void *fw_handle) } xa_unlock_irqrestore(&dev->srqs, flags); DP_NOTICE(dev, "SRQ event %d on handle %p\n", e_code, srq); + break; default: break; }