Skip to contentSkip to conversation

firewire: core: Fix fall-through warnings for Clang

PATCH In review Gustavo A. R. Silva 2 participants 3 messages Mar 5, 2021 – May 18, 2021 Firewire

lore
Share & tools
lore
#0 lore raw

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
index ec68ed27b0a5..b63d55f5ebd3 100644
@@ -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
#1 lore raw

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
index ec68ed27b0a5..b63d55f5ebd3 100644
@@ -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;
 		}
#2 lore raw

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
--
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
index ec68ed27b0a5..b63d55f5ebd3 100644
@@ -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;
 		}