firewire: core: Fix fall-through warnings for Clang
PATCH 1/1 firewire: core: Fix fall-through warnings for Clang
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a fallthrough pseudo-keyword.
--- drivers/firewire/core-topology.c | 1 + 1 file changed, 1 insertion(+)
drivers/firewire/core-topology.c +1 -0
@@ -58,6 +58,7 @@ static u32 *count_ports(u32 *sid, int *total_port_count, int *child_port_count)case SELFID_PORT_PARENT :case SELFID_PORT_NCONN : (*total_port_count)++; + fallthrough;case SELFID_PORT_NONE :break ; }
Signature · 1 line
2.27.0
Hi all,
Friendly ping: who can take this, please?
Thanks
--
Gustavo
Quoted 22 lines · Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a fallthrough pseudo-keyword.
--- drivers/firewire/core-topology.c | 1 + 1 file changed, 1 insertion(+)drivers/firewire/core-topology.c +1
-0@@ -58,6 +58,7 @@ static u32 *count_ports(u32 *sid, int *total_port_count, int *child_port_count)case SELFID_PORT_PARENT :case SELFID_PORT_NCONN : (*total_port_count)++; + fallthrough;case SELFID_PORT_NONE :break ; }
Hi,
If you don't mind, I'm taking this in my -next[1] branch for v5.14.
Thanks
--
Gustavo
[1] https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git/log/?h=for-next/kspp
Quoted 31 lines · Gustavo A. R. Silva
Hi all,
Friendly ping: who can take this, please?
Thanks
--
GustavoQuoted 22 lines · Gustavo A. R. Silva
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning by explicitly adding a fallthrough pseudo-keyword.
--- drivers/firewire/core-topology.c | 1 + 1 file changed, 1 insertion(+)drivers/firewire/core-topology.c +1
-0@@ -58,6 +58,7 @@ static u32 *count_ports(u32 *sid, int *total_port_count, int *child_port_count)case SELFID_PORT_PARENT :case SELFID_PORT_NCONN : (*total_port_count)++; + fallthrough;case SELFID_PORT_NONE :break ; }