Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2362382lqp; Sun, 24 Mar 2024 15:49:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWWyMUxB/dee7CRS5muJZCjL7RMgAZrvlF9/1oyg3f9oGqeudbLD6RjelbzoRaKD82JK3UUovjLn5wVukxGsOi4bpqUjYnvyiLrx8FPmg== X-Google-Smtp-Source: AGHT+IG+24eU2np8k6TSi0zkd+TTPRx+cJYfGgDNSAIEp6L6Rs5WZbARL77Sk57IFQ5tvYJ2vRz6 X-Received: by 2002:a17:903:2d0:b0:1e0:9b1e:e457 with SMTP id s16-20020a17090302d000b001e09b1ee457mr7733806plk.19.1711320575389; Sun, 24 Mar 2024 15:49:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711320575; cv=pass; d=google.com; s=arc-20160816; b=bJSmPtfAurrT3Xr7X0i0IYGpg1FQU+30svypmj7Pt8/BMVZ2JijTGzLUIZMuY07R/E IfvP9plBcOJh9qvPLF2yXUi1mV+6ms0UfWKdEzDo+vOQPbLkv5gUV/d1Oxg1CGgJ/CJT lWu9biVgiMRQZBiczZFsav/yAkwEp8w8vBlu2EAPxicFVZ6xunhusAVDR3nMdco6SPEr Cx550gm+UTgJlmJXtvA/UanWl5PrpheYISDoMJBP/tX2akRWXrP+ETj8DHM3m/T4UD3P 4lQLToTJNZ+LwOI0wnYJ1WKazR7KZ5mCloPjSOLthkouQDiCz1rJ3d2DiE1OYf+dPTYF T3Bg== 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=pUlB2+ZA5TrBRmbzoT5rffABO7l2cYJ/BBruGaxGcV8=; fh=QjpbeGVwognWl3PIZE4AWsCuylyHvllwVo1MB9wPxTE=; b=MzwQDKsNpzvV6sZH3r/QWXlpC4tMkwTASuhIyx9U0KK2h6+ooidl0xtPCg90LIeeU3 lZIghQ2WF2ddwdrpsoLdAk0ENWh+gl3aUP2I3wvuGkK3coihjg8tSIJth9RE2SYtun4E VHPmURirR/TfsHzDrmXcNXdovye9dVNADmDjMH3Kv4dYQBqKvgcjcA7cQ8dhkRYZxpgG OSrDaWmLRl4GeE0JZFILIRvtHPK6EgX4WWcr9dC9ljkwx5vgS5F8cVR7AvRzr5sYs/IS r4fGYtBleWO+9XIakstsWoQDNDfLs7uWBSZEEtNcqp6t3/sCfB1KE9rn3jR0k8dolXeP zL4w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LlazJP5S; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-112947-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112947-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id v1-20020a170903238100b001e0a2978a94si4007963plh.221.2024.03.24.15.49.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 15:49:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112947-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LlazJP5S; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-112947-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112947-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 13F142811A5 for ; Sun, 24 Mar 2024 22:49:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A8E8F82C71; Sun, 24 Mar 2024 22:36:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="LlazJP5S" 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 BB0AB82860; Sun, 24 Mar 2024 22:35:59 +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=1711319759; cv=none; b=uHgMOfSwPDm+PcuXxQHNag4FZZdx8p/JxLfJcZEEm8J7Fjm4oODYsaGS77fzi6q2PM0neBYZsJSmS0UdNNc1Ipwvboz+sDVmZZT9Ja/5u4FuftHj02/aHMoolMf/ObRh5x/MmfUSzHm2aVfK/9guRtwT0Q+2ttHUWDZ3IqdlPCc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319759; c=relaxed/simple; bh=Qdef+ftIbJ1XbL9pjOrUZIcLWOBV/tvSiOqygjidF7A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ZUL5NiiFTAz2KQ/SuQoQxkdh3U5oyiY588Kb4Ejt8/8om9pXtj3NcLj8y1nBqjZldcPLwXFbPYzRIMPpwLvE3LNR72dYHTikspv+iCdisVSMYma9bafbaGuv/WU4XdGqSSTvTacpSe9eDLBPeECE7DT4IklglAWgqJKbZbekilE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=LlazJP5S; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02432C43390; Sun, 24 Mar 2024 22:35:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711319759; bh=Qdef+ftIbJ1XbL9pjOrUZIcLWOBV/tvSiOqygjidF7A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LlazJP5SCND32n8236YReX+yUTDwTUETuCOxfY1N6KppWMo65lbTVhUuNPEOjYbSe QZh23neelBAJe6+Y0tlNcCs/xbPYekCt95mU855QLWYJskTx7J4TJ2WTdgrav1M5OI myVupbKByrDiY9UJ0FCa4WHl7Is7ssA5q68Iylvv3Iwwz9epCK0Jqkgy/hBi4A8CZs TbptapGh21O829LNicUrZXEaM6EatgK/5d/f2m8QHFvkGi4KfToQhjscoT0byHKeoL n2ms4zWXhd0tm65f/iDgY8QfZwDVgL78n7vWEkupVXlShjbSr9H6aT3LAzlKOfhnta 5w3aWQ0Y4vtBQ== 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 6.8 060/715] wifi: wilc1000: fix declarations ordering Date: Sun, 24 Mar 2024 18:23:59 -0400 Message-ID: <20240324223455.1342824-61-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-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 839f142663e86..6f1218a510610 100644 --- a/drivers/net/wireless/microchip/wilc1000/hif.c +++ b/drivers/net/wireless/microchip/wilc1000/hif.c @@ -377,13 +377,13 @@ struct wilc_join_bss_param * 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