Message ID | 20230919095205.24949-1-colin.i.king@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp3340269vqi; Tue, 19 Sep 2023 05:18:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFetOLfEqEm+S8YveT/ld2xVhA4Kphdma9D+2X2p5DPRuhLh/X4/C4BxXhNEnQYol0O5kMX X-Received: by 2002:a17:902:dac2:b0:1c4:172b:2f7c with SMTP id q2-20020a170902dac200b001c4172b2f7cmr13422990plx.0.1695125926490; Tue, 19 Sep 2023 05:18:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695125926; cv=none; d=google.com; s=arc-20160816; b=vkc7SZ2ktoXzW+0YYQ2J+Q15hQDvMoXZLElJDyGd5QmTQB8wEhXD0Z4bNECoxKfTcH PtKeZXP1LRd16x9rajC77NbxT4aOWVWVCroHJp40qO6m2ERlbWvx4iUVPObL8M7oCqAK UGkglsC7QIdX/eFcxowrGMDN7mPg/81jsaTVZfvjhx4lJlgX/Hmno8e+IJkB7oDeDHVf akOD73g31lj37Vld/lPhbZ9j4t2xvdHN7Vxauv0xp4+E8hElEXT9LWoCPYKE4F9urYTb h+9GxVnuBBbKnBFYVGSJgcCmNEAkm15L4/u9UMYF/KIU8vHuduEAEv1xFQaY7XcXiw+e wM1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=i9GTFmeV/EvnfETMNwPDcGK8R8Ka2xMUzQavnbL/9JU=; fh=NIRNLEVftyR3PBYuYMFREjooBWIZ4z7P9+iGLLS/KtQ=; b=QJgyXrSsVU7ea32nISq3b7McDWU3rsKPm+2lNFL4tMXbrvEZRqXT/JmdI7L8o4hU3L LJuv6yD6oRlkkKo5rf9R7qYfLepCxbbbPBU22yeiJcuReQ/QW1Pvsb3WvDO5NOM1waps bYJaoC4FkMU+K8S8JpbxcGqfngNMyv9XCTRP3A9RJEHlq6BtokXU3qOSWgc9jJHDTeZS 89DYosREnTq1TksT4uQ+UYN/4CNqCGQSJBUj09/UZnqezrjJPBnzgrhZRod6xrs93i7s E0JAuNMneeYhSTc8dwPT0cIBH8O8ixYKCIhrUVJuO9oUTTGu51MZLhLw2k2ZjPs3pz1C HPCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FuMsnxRR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id u16-20020a17090341d000b001c4621ac000si5412655ple.246.2023.09.19.05.18.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 05:18:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FuMsnxRR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 87DBF826EBB0; Tue, 19 Sep 2023 02:52:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231608AbjISJwS (ORCPT <rfc822;toshivichauhan@gmail.com> + 26 others); Tue, 19 Sep 2023 05:52:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231488AbjISJwO (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 19 Sep 2023 05:52:14 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2278F1; Tue, 19 Sep 2023 02:52:08 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-31fe3426a61so4484106f8f.1; Tue, 19 Sep 2023 02:52:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695117127; x=1695721927; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=i9GTFmeV/EvnfETMNwPDcGK8R8Ka2xMUzQavnbL/9JU=; b=FuMsnxRRP/EEVypsxJxsP6lUWTSCp4NqTiQJ2nfj65eWMMh2i4rfQyVQAqYBWPNSIr rL0z5wxU2dBoGmVIN+bki+Sov0EengJVhOqnkpSXTzn5yc7cG/tteVzghIBlAtGdg8Vn qx2sUuseeait4HoEcqex5Wq96TjA0YVI8BVO9CNsQnt13MKjz6zwmoxjis3GWzx/Pnwq eyposhUbg3K8hjpExR/B1uO54qImTmpSxUGjJMHPuix0Utynbh0/QyTy+xS/Ih7NYO+E fkOe3xgtIRlQJQTIoDz24OWrVPIloD40ReOFoSTcUScAT7t9vrxLp/xwB5amadqq7emA f2zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695117127; x=1695721927; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=i9GTFmeV/EvnfETMNwPDcGK8R8Ka2xMUzQavnbL/9JU=; b=Th8FEnqjyLjFev+bCXwoC2gGHNdAuNsdgXj0PX7xAYUgVpoteD+vXhZVyJDPXRWLbg hGvkdF0CwRYrK6Nf8kPUizwOeRQsHDM5GoT8CgJidM+5pOI3XDA1JiLV8wQMkPufP153 MIcKDm4Yk46gx2eG7rHpttNjrYUW7cXikFJTqGStPYW0gkB75mgdu31/lpU/nCDmvrX2 N4C9RcFQWWm1vbdUppSs5ZASKaMvTDztxhh27ztttnZ/AvpERY/JA+iOsex71J4Az3PG hgfp+C/Gwhd7K6sRVXbDLBwED7JzCX7B4lmlGRZANvRy3Q8tLVlhxxGkDB6DOMryG/RK Ng8Q== X-Gm-Message-State: AOJu0Yxug0uIRG+Cmdip7MBL4jQQAsgHreZUwmaicbEOAXVO9qwGhCdx OPq7r0js7oQXw05ic9a0VgidbVVc/XsMphjZ X-Received: by 2002:a5d:678f:0:b0:31c:6697:6947 with SMTP id v15-20020a5d678f000000b0031c66976947mr10470011wru.69.1695117126737; Tue, 19 Sep 2023 02:52:06 -0700 (PDT) Received: from localhost (cpc154979-craw9-2-0-cust193.16-3.cable.virginm.net. [80.193.200.194]) by smtp.gmail.com with ESMTPSA id h18-20020a5d5052000000b0031ad5470f89sm10335659wrt.18.2023.09.19.02.52.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 02:52:06 -0700 (PDT) From: Colin Ian King <colin.i.king@gmail.com> To: Johannes Berg <johannes@sipsolutions.net>, "David S . Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, linux-wireless@vger.kernel.org, netdev@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH][next] wifi: cfg80211: make read-only array centers_80mhz static const Date: Tue, 19 Sep 2023 10:52:05 +0100 Message-Id: <20230919095205.24949-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 19 Sep 2023 02:52:24 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777468363512097090 X-GMAIL-MSGID: 1777468363512097090 |
Series |
[next] wifi: cfg80211: make read-only array centers_80mhz static const
|
|
Commit Message
Colin Ian King
Sept. 19, 2023, 9:52 a.m. UTC
Don't populate the read-only array lanes on the stack, instead make
it static const.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
net/mac80211/tdls.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hello: This patch was applied to netdev/net-next.git (main) by David S. Miller <davem@davemloft.net>: On Tue, 19 Sep 2023 10:52:05 +0100 you wrote: > Don't populate the read-only array lanes on the stack, instead make > it static const. > > Signed-off-by: Colin Ian King <colin.i.king@gmail.com> > --- > net/mac80211/tdls.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Here is the summary with links: - [next] wifi: cfg80211: make read-only array centers_80mhz static const https://git.kernel.org/netdev/net-next/c/6c0da8406382 You are awesome, thank you!
diff --git a/net/mac80211/tdls.c b/net/mac80211/tdls.c index ba14f570cda7..f3fd66d30b84 100644 --- a/net/mac80211/tdls.c +++ b/net/mac80211/tdls.c @@ -309,7 +309,7 @@ ieee80211_tdls_chandef_vht_upgrade(struct ieee80211_sub_if_data *sdata, struct sta_info *sta) { /* IEEE802.11ac-2013 Table E-4 */ - u16 centers_80mhz[] = { 5210, 5290, 5530, 5610, 5690, 5775 }; + static const u16 centers_80mhz[] = { 5210, 5290, 5530, 5610, 5690, 5775 }; struct cfg80211_chan_def uc = sta->tdls_chandef; enum nl80211_chan_width max_width = ieee80211_sta_cap_chan_bw(&sta->deflink);