From ca2a11a0c4a4915f679666ddde96aebae11a3d23 Mon Sep 17 00:00:00 2001 From: David Oladunjoye Date: Thu, 9 Jun 2022 11:57:00 -0700 Subject: [PATCH] qcacld-3.0: dp: Replace fallthrough comment with attribute -Wimplicit-fallthrough is being enabled by default. Some compilers such as clang require the attribute instead of just a fallthrough comment. Change-Id: I6d12321a649b61b35f9abf4fb977d368fc8a6e4e CRs-Fixed: 3217402 --- components/dp/core/src/wlan_dp_main.c | 8 ++++---- components/dp/core/src/wlan_dp_softap_txrx.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/dp/core/src/wlan_dp_main.c b/components/dp/core/src/wlan_dp_main.c index e32ed9e7c9..d476ec981a 100644 --- a/components/dp/core/src/wlan_dp_main.c +++ b/components/dp/core/src/wlan_dp_main.c @@ -313,16 +313,16 @@ void dp_trace_init(struct wlan_objmgr_psoc *psoc) switch (num_entries) { case 4: proto_bitmap = config_params[3]; - /* fallthrough */ + fallthrough; case 3: verbosity = config_params[2]; - /* fallthrough */ + fallthrough; case 2: thresh = config_params[1]; - /* fallthrough */ + fallthrough; case 1: live_mode = config_params[0]; - /* fallthrough */ + fallthrough; default: dp_debug("live_mode %u thresh %u time_limit %u verbosity %u bitmap 0x%x", live_mode, thresh, thresh_time_limit, diff --git a/components/dp/core/src/wlan_dp_softap_txrx.c b/components/dp/core/src/wlan_dp_softap_txrx.c index 4bf8f57c54..d2118fe699 100644 --- a/components/dp/core/src/wlan_dp_softap_txrx.c +++ b/components/dp/core/src/wlan_dp_softap_txrx.c @@ -330,7 +330,7 @@ int dp_softap_inspect_dhcp_packet(struct wlan_dp_intf *dp_intf, sta_info->sta_mac.bytes, true); sta_info->dhcp_nego_status = DHCP_NEGO_IN_PROGRESS; - /* fallthrough */ + fallthrough; case QDF_PROTO_DHCP_DECLINE: if (dir == QDF_RX) sta_info->dhcp_phase = DHCP_PHASE_REQUEST;