[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4f6e62d1-c850-4469-b549-cc4b47081e3f@kylinos.cn>
Date: Tue, 27 May 2025 16:05:12 +0800
From: Pei Xiao <xiaopei01@...inos.cn>
To: Johannes Berg <johannes@...solutions.net>,
miriam.rachel.korenblit@...el.com, emmanuel.grumbach@...el.com,
linux-wireless@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] wifi: iwlwifi: cfg: Limit cb_size to valid range
在 2025/5/23 15:59, Johannes Berg 写道:
> On Fri, 2025-05-23 at 14:04 +0800, Pei Xiao wrote:
>>
>> - WARN_ON(RX_QUEUE_CB_SIZE(iwl_trans_get_num_rbds(trans)) > 12);
>> + cb_size = RX_QUEUE_CB_SIZE(iwl_trans_get_num_rbds(trans));
>> + if (unlikely(cb_size > 12)) {
>> + WARN_ON(1);
>>
> What's wrong with "if (WARN_ON(...))"?!?
ok,thanks!
> Not that I think it even really needs to be there but I guess working
> around a compiler warning could be worth it.
yes!
> johannes
Pei.
Thanks !
Powered by blists - more mailing lists