Skip to contentSkip to conversation

Drivers: hv: hv_kvp: Mark expected switch fall-through

PATCH New Gustavo A. R. Silva 1 participant 1 message Jul 2, 2018 Hyper-V/Azure core and drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Drivers: hv: hv_kvp: Mark expected switch fall-through

In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through.

---
 drivers/hv/hv_kvp.c | 1 +
 1 file changed, 1 insertion(+)
drivers/hv/hv_kvp.c +1 -0
index 5eed1e7..9b1adcb 100644
@@ -352,6 +352,7 @@ static void process_ib_ipinfo(void *in_msg, void *out_msg, int op)
 				MAX_IP_ADDR_SIZE);
 
 		out->body.kvp_ip_val.dhcp_enabled = in->kvp_ip_val.dhcp_enabled;
+		/* fall through */
 
 	default:
 		utf16s_to_utf8s((wchar_t *)in->kvp_ip_val.adapter_id,
Signature · 1 line
2.7.4