From nobody Mon Jun 8 07:26:45 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5791D175A7E; Thu, 4 Jun 2026 22:40:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780612848; cv=none; b=dDMiER5ljCRYd7Ysvn6h9zVmBmEDnO++p85shkyvIUNb8WCcSg8AG7BqBZRjD11znydEVh7tQZzA32zNHYwqycHxz6xwG+tMgbtr3O4LESkAmzZ7F0xobqL+Z4VInWExgg+oaLVZeWkEq1+QHxBsCCH5olOBD+taug95Tbhm8oo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780612848; c=relaxed/simple; bh=EX6csmbrJqEzxCbHsVp7F8OYRVjs7FwhFm2n8H80xew=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:To:Cc; b=PbQPxaLpwzmmz3X7kGf1EJMFRqBpPwRdQf+UEqblsUoWLYpQ0dAagatA5Bx2pN2wQrDXPDzVv+ymQkZeNb1imPuf7sWDWtMRU3a7CliCgneGSWp+eACc2LqzRQfae6FO8GDyzEqsANeRXT9d4JPWE68QALQmm0Y27XBX/Z6bBag= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kuBs0nqB; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kuBs0nqB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3D7471F00893; Thu, 4 Jun 2026 22:40:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1780612847; bh=vNSWf7nSgDH8L2l2DjM7pdv9xwtZIhfH8fKI+ltDrRI=; h=From:Date:Subject:To:Cc; b=kuBs0nqBArB9Quu4d9LMMxXU2532mvXaQW5vfH8b7Mz0WJSr1+xaXFcY/9AYHvtKx ynlTht61ukSw44QuXtfvRpCOIy3i6+pvxn5xik04n/ppxC24kR6Dvss1XS6VpSyvF9 1tFOW7T2H63xJfkpe/iS8UCBfZPSvvwi9Z+HHyP6Al8XVWVqDugcFhYwSVhikX2n25 HtFt/jDvSARSgEicgCYvsw1dVMxdFynigu2xG/kv46guRyxRT7dfuSp3NlnyoHv1jY gNxJHJffpQH3osuvb1Ff2VtV4KS4kweTyrA1if9iM6qioLYzTqwxtw+d19ud2p6IMX gieRo4aqn6i2w== From: Nathan Chancellor Date: Thu, 04 Jun 2026 15:40:41 -0700 Subject: [PATCH] wifi: mac80211: Fix -Wc23-extensions in hwmp_route_info_get() Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260604-mac80211-mesh_hwmp-fix-c23-extensions-v1-1-25a64d6ce541@kernel.org> X-B4-Tracking: v=1; b=H4sIAAAAAAAC/yXNUQrCMBBF0a2U+XYgiTW0bkVE2snEREgsmaqF0 r2b6ueBx30rCJfIAudmhcLvKPGZK/ShAQpDvjNGVw1GGausajEN1CmjNSaWcAufNKGPC5I5Ii8 z5z0geOpHR966zvct1NZUuK5+P5fr3/IaH0zzHodt+wKPv1fwiQAAAA== X-Change-ID: 20260604-mac80211-mesh_hwmp-fix-c23-extensions-59bdcf6d8f94 To: Johannes Berg Cc: Bill Wendling , Justin Stitt , Masashi Honma , linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Nick Desaulniers , Nathan Chancellor X-Mailer: b4 0.16-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=2460; i=nathan@kernel.org; h=from:subject:message-id; bh=EX6csmbrJqEzxCbHsVp7F8OYRVjs7FwhFm2n8H80xew=; b=owGbwMvMwCUmm602sfCA1DTG02pJDFmK/97kXZe4uEZu3ey1/RMrg80+GLq9C6oOYV+abpEgu ij0z4LKjlIWBjEuBlkxRZbqx6rHDQ3nnGW8cWoSzBxWJpAhDFycAjAR/mMMv1k+BT11feI34/kJ h2ih/7kZtxdO9Vj73VKHIa1XvWxOEy/DP9WFW1u+Jv/00mT+c+nfgZ1botStdRyP7Qn9Fcr4gt3 YlAkA X-Developer-Key: i=nathan@kernel.org; a=openpgp; fpr=2437CB76E544CB6AB3D9DFD399739260CB6CB716 When building with a version of clang that supports '-fms-anonymous-structs' (which will be used by the kernel instead of the wider '-fms-extensions'), there are a couple warnings after some recent mesg_hwmp.c changes: net/mac80211/mesh_hwmp.c:373:3: error: label followed by a declaration is= a C23 extension [-Werror,-Wc23-extensions] 373 | struct ieee80211_mesh_hwmp_preq_top *preq_elem_to= p =3D | ^ net/mac80211/mesh_hwmp.c:390:3: error: label followed by a declaration is= a C23 extension [-Werror,-Wc23-extensions] 390 | struct ieee80211_mesh_hwmp_prep_top *prep_elem_to= p =3D | ^ 2 errors generated. Enclose the switch case blocks in braces to clear up the warning. Fixes: a91c65cb99d1 ("wifi: mac80211: Use struct instead of macro for PREP = frame") Fixes: 4ac20bd40b7d ("wifi: mac80211: Use struct instead of macro for PREQ = frame") Signed-off-by: Nathan Chancellor --- net/mac80211/mesh_hwmp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/net/mac80211/mesh_hwmp.c b/net/mac80211/mesh_hwmp.c index 84903737271d..7f962b003579 100644 --- a/net/mac80211/mesh_hwmp.c +++ b/net/mac80211/mesh_hwmp.c @@ -369,7 +369,7 @@ static u32 hwmp_route_info_get(struct ieee80211_sub_if_= data *sdata, fresh_info =3D true; =20 switch (action) { - case MPATH_PREQ: + case MPATH_PREQ: { struct ieee80211_mesh_hwmp_preq_top *preq_elem_top =3D (void *)hwmp_ie; struct ieee80211_mesh_hwmp_preq_bottom *preq_elem_bottom =3D @@ -381,7 +381,8 @@ static u32 hwmp_route_info_get(struct ieee80211_sub_if_= data *sdata, orig_metric =3D le32_to_cpu(preq_elem_bottom->metric); hopcount =3D preq_elem_top->hopcount + 1; break; - case MPATH_PREP: + } + case MPATH_PREP: { /* Originator here refers to the MP that was the target in the * Path Request. We divert from the nomenclature in the draft * so that we can easily use a single function to gather path @@ -398,6 +399,7 @@ static u32 hwmp_route_info_get(struct ieee80211_sub_if_= data *sdata, orig_metric =3D le32_to_cpu(prep_elem_bottom->metric); hopcount =3D prep_elem_top->hopcount + 1; break; + } default: rcu_read_unlock(); return 0; --- base-commit: a26c2a22e7e88b2b5afb1349f3994fc564c988b1 change-id: 20260604-mac80211-mesh_hwmp-fix-c23-extensions-59bdcf6d8f94 Best regards, -- =20 Cheers, Nathan