File: 35-wl-Use-kernel-keyword-for-fallthrough.patch

package info (click to toggle)
broadcom-sta 6.30.223.271-29
  • links: PTS, VCS
  • area: non-free
  • in suites: forky, sid
  • size: 18,968 kB
  • sloc: ansic: 28,321; makefile: 317; xml: 36; sh: 14
file content (24 lines) | stat: -rw-r--r-- 847 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Diego Escalante Urrelo <diegoe@gnome.org>
Date: Thu, 13 Feb 2025 05:40:26 -0500
Subject: wl: Use kernel keyword for fallthrough

The comment convention leads to false positives with the macro expansion.
---
 amd64/src/wl/sys/wl_cfg80211_hybrid.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/amd64/src/wl/sys/wl_cfg80211_hybrid.c b/amd64/src/wl/sys/wl_cfg80211_hybrid.c
index e23ef83..204aab8 100644
--- a/amd64/src/wl/sys/wl_cfg80211_hybrid.c
+++ b/amd64/src/wl/sys/wl_cfg80211_hybrid.c
@@ -811,7 +811,9 @@ wl_set_auth_type(struct net_device *dev, struct cfg80211_connect_params *sme)
 		break;
 	case NL80211_AUTHTYPE_NETWORK_EAP:
 		WL_DBG(("network eap\n"));
-        /* falls through */
+#ifdef fallthrough
+		fallthrough;
+#endif
 	default:
 		val = 2;
 		WL_ERR(("invalid auth type (%d)\n", sme->auth_type));