* [PATCH][next] wifi: cfg80211: make read-only array centers_80mhz static const
@ 2023-09-19 9:52 Colin Ian King
2023-09-20 11:00 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Colin Ian King @ 2023-09-19 9:52 UTC (permalink / raw)
To: Johannes Berg, David S . Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, linux-wireless, netdev
Cc: kernel-janitors, linux-kernel
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(-)
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);
--
2.39.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH][next] wifi: cfg80211: make read-only array centers_80mhz static const
2023-09-19 9:52 [PATCH][next] wifi: cfg80211: make read-only array centers_80mhz static const Colin Ian King
@ 2023-09-20 11:00 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-09-20 11:00 UTC (permalink / raw)
To: Colin Ian King
Cc: johannes, davem, edumazet, kuba, pabeni, linux-wireless, netdev,
kernel-janitors, linux-kernel
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!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-09-20 11:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-19 9:52 [PATCH][next] wifi: cfg80211: make read-only array centers_80mhz static const Colin Ian King
2023-09-20 11:00 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).