Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2575221lqp; Mon, 25 Mar 2024 03:12:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVRxQBsDRBXe3HtXb9Q4mIsE4BkGS6XR5cbTXRp2+5R1pRvKx/glYGoWw0V+jntHtAcW1hAf39uRdh4fqyHTzXHBtBJoa6J93hPmW3HvQ== X-Google-Smtp-Source: AGHT+IFZLT0NVtv3tFtPWZOofwO9xXw0yn3lKVrJbNUFTdlYD079RX+EWevosXbCGsNhTT+ApoFO X-Received: by 2002:a50:99c4:0:b0:56a:2b6b:42cd with SMTP id n4-20020a5099c4000000b0056a2b6b42cdmr4405547edb.3.1711361530612; Mon, 25 Mar 2024 03:12:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711361530; cv=pass; d=google.com; s=arc-20160816; b=eSVbvmlOPwr/Sz8x8/wI88xm1zsExFuPQalercZhbDrEdrNsxTWFJYxHIpJC6Ud+W5 GqyFBuMvcxHP1UQKfEft7KPvXds/itiKVyQlvvnuepJ0vETcu8+Jt3312j8k4YgYtVrR 782Dc7ZJzWr3L3NkBbiuAI5R8lf6EIXE053Iphvkprspk8c3tgBXYL9noAcz0BlaV5UN N2wBuTVNKaElJLP+wa/cDqQNEs9btMjEdmv/keK7HnuCaBRIsAetI0FqJNxBaDcw8kW4 d2iotDZ6l8oIH+3BK82GvvhhImaHhqbEuQ1Ss6ERUtXwSI68Ep6oukfVr+ihNsWeLFeo J1IA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=OF3/A4e3xxmCE/QXw0MbvnwaiQ8ti8uet7izuGDdjMY=; fh=QjpbeGVwognWl3PIZE4AWsCuylyHvllwVo1MB9wPxTE=; b=oakvRgpuhECLkzVf8pkPPMFf4WP0MQ7PT4VupK8YSLYfN6RPTrETYcy+Qh6UUSKL6e MLwZQzubHTqPMih5H1uIZFOA3o8xbfXNpfMNv5EpfckVeRXX4tVC40SPBV+4HKlTxndj wPz8A2twLCbbfgaRbPwIQ4kTvK874aCOfziQZYYZPgWKUGRTqi3h362e2+84en6Bhjps WAEUaN1VIWwnGxKn4dOad/cYfscACZBTSG47oYH3zVo05SXgrlaHWkScWeSsWEHPIwvD x0PlA9C7VYdoQ/YwwfMf6x0GeYzVpBgRA2CE7AWJuUMgfaTJI7Ki7zlkTVEbtYbHwBWY N55g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LKdXb2cx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-116131-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116131-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id fe3-20020a056402390300b0056c0d96f994si856681edb.538.2024.03.25.03.12.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 03:12:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-116131-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LKdXb2cx; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-116131-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-116131-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4D46F1F2CC9C for ; Mon, 25 Mar 2024 10:12:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8604D17ADC4; Mon, 25 Mar 2024 03:32:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LKdXb2cx" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5564C2811AF; Sun, 24 Mar 2024 23:41:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711323672; cv=none; b=kdAwj4WFRomK413DI0unjq2y5v69fOzMWjEZdUKT3YTyuGIAcLuMNWFEpuKw6M19opJlMkJFyOEZ6z57vmCZ5EuXAZxQHndUGdINTmMnMAQ1JfWzxSUMr46jdPpInsOSFpLu84lA9CMpdMzUKZllzcz0tnBCDooLwYEPdHL5uUw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711323672; c=relaxed/simple; bh=tYtOBFKTlqrPpFgpD2Kj2tZ5+ElxGQzIPYLeyxXO1KE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=V9zZ74JBmu89fVH38j29/jv0iCMkaBh1c/308Bf9dH139iCMR7W9DXHQihwtmmai0++WJJ3p5eTIUlqW6T4KhnjTIgFGXnLhWBIBIDjrhNQ/KS6L6MN292o2P+VAr85gN1RVRyxl8LA+TP3+/8Q5ZGB1ywuxQAemzICWlEVbMIs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LKdXb2cx; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9718FC43390; Sun, 24 Mar 2024 23:41:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711323672; bh=tYtOBFKTlqrPpFgpD2Kj2tZ5+ElxGQzIPYLeyxXO1KE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LKdXb2cxG62UMFKo3wogKJLn2ammcD96g+ZhqNQQT4puO66u5q5TIavxajOU7EjCA QXwy1IR6kbB+fhSVKVv/ru8eXGblpNoa+tG/I/flBKRLvMEh5xXj+eCcn7Hf1NGoL+ tzQrnG0JnwVo8Z1Kq9txJamvnfvJaxBudMG9hFLKFB/09II5cCJtiF4oAVuR/l4W7S j9bCj5/r2nKPO6lVq2jJPuf53gkvaLkpU/NH6cGPxjHgW/gBdl5moasPQIpbDqRmwx EuRTKCOTAHpzzgUeJwgJTLyChsg1qkRIRi1iX1PVdXAZLCAFEFgd09UmakRn74VXOu /y3LjoqwtqEoQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: =?UTF-8?q?Alexis=20Lothor=C3=A9?= , Kalle Valo , Sasha Levin Subject: [PATCH 5.10 044/238] wifi: wilc1000: fix declarations ordering Date: Sun, 24 Mar 2024 19:37:12 -0400 Message-ID: <20240324234027.1354210-45-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324234027.1354210-1-sashal@kernel.org> References: <20240324234027.1354210-1-sashal@kernel.org> 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 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Alexis Lothoré [ Upstream commit 535733e90e5d8912ebeccebb05b354a2d06ff459 ] Reorder parameters declaration in wilc_parse_join_bss_param to enforce reverse christmas tree Signed-off-by: Alexis Lothoré Signed-off-by: Kalle Valo Link: https://msgid.link/20240105075733.36331-2-alexis.lothore@bootlin.com Stable-dep-of: 205c50306acf ("wifi: wilc1000: fix RCU usage in connect path") Signed-off-by: Sasha Levin --- drivers/net/wireless/microchip/wilc1000/hif.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/net/wireless/microchip/wilc1000/hif.c b/drivers/net/wireless/microchip/wilc1000/hif.c index 884f45e627a72..bff33f39605b9 100644 --- a/drivers/net/wireless/microchip/wilc1000/hif.c +++ b/drivers/net/wireless/microchip/wilc1000/hif.c @@ -359,13 +359,13 @@ static void handle_connect_timeout(struct work_struct *work) void *wilc_parse_join_bss_param(struct cfg80211_bss *bss, struct cfg80211_crypto_settings *crypto) { - struct wilc_join_bss_param *param; - struct ieee80211_p2p_noa_attr noa_attr; - u8 rates_len = 0; + const struct cfg80211_bss_ies *ies = rcu_dereference(bss->ies); const u8 *tim_elm, *ssid_elm, *rates_ie, *supp_rates_ie; const u8 *ht_ie, *wpa_ie, *wmm_ie, *rsn_ie; + struct ieee80211_p2p_noa_attr noa_attr; + struct wilc_join_bss_param *param; + u8 rates_len = 0; int ret; - const struct cfg80211_bss_ies *ies = rcu_dereference(bss->ies); param = kzalloc(sizeof(*param), GFP_KERNEL); if (!param) -- 2.43.0