i3c: master: cdns: Fix fall-through warnings for Clang
Subsystems (2)
PATCH RESEND 1/1 i3c: master: cdns: 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 letting the code fall through to the next case.
--- drivers/i3c/master/i3c-master-cdns.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/i3c/master/i3c-master-cdns.c +2 -0
@@ -1379,6 +1379,8 @@ static void cnds_i3c_master_demux_ibis(struct cdns_i3c_master *master)case IBIR_TYPE_MR :WARN_ON (IBIR_XFER_BYTES (ibir) || (ibir &IBIR_ERROR )); +break ; +default :break ; }
Signature · 7 lines
2.27.0 -- linux-i3c mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-i3c
Alexandre Belloni
maintainerQuoted 4 lines · Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a break statement instead of letting the code fall through to the next case.
I though Clang would be fixed to stop warning in that case, can't you push a patch there ?
Quoted 22 lines
--- drivers/i3c/master/i3c-master-cdns.c | 2 ++ 1 file changed, 2 insertions(+)drivers/i3c/master/i3c-master-cdns.c +2
-0@@ -1379,6 +1379,8 @@ static void cnds_i3c_master_demux_ibis(struct cdns_i3c_master *master)case IBIR_TYPE_MR :WARN_ON (IBIR_XFER_BYTES (ibir) || (ibir &IBIR_ERROR )); +break ; +default :break ; }Signature · 1 line
2.27.0
Signature · 8 lines
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com -- linux-i3c mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-i3c