* [PATCH] staging: rtl8723bs: use unsigned int in rtw_get_rateset_len
@ 2026-09-03 20:31 Nicolas Giuliani via B4 Relay
2026-09-04 4:23 ` Greg Kroah-Hartman
0 siblings, 1 reply; 2+ messages in thread
From: Nicolas Giuliani via B4 Relay @ 2026-09-03 20:31 UTC (permalink / raw)
To: Greg Kroah-Hartman; +Cc: linux-staging, linux-kernel, Nicolas Giuliani
From: Nicolas Giuliani <nicolas.giuliani@hotmail.com>
Replace the uint typedef with unsigned int in rtw_get_rateset_len()
and its declaration.
This addresses the rtl8723bs TODO item to convert remaining unusual
variable types. No functional change intended.
Assisted-by: LLM
Signed-off-by: Nicolas Giuliani <nicolas.giuliani@hotmail.com>
---
staging: rtl8723bs: use unsigned int in rtw_get_rateset_len
---
drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 4 ++--
drivers/staging/rtl8723bs/include/ieee80211.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c b/drivers/staging/rtl8723bs/core/rtw_ieee80211.c
index 66f476a46a..8c20609fc3 100644
--- a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c
+++ b/drivers/staging/rtl8723bs/core/rtw_ieee80211.c
@@ -278,9 +278,9 @@ void rtw_set_supported_rate(u8 *supported_rates, uint mode)
}
}
-uint rtw_get_rateset_len(u8 *rateset)
+unsigned int rtw_get_rateset_len(u8 *rateset)
{
- uint i;
+ unsigned int i;
for (i = 0; i < 13; i++)
if (rateset[i] == 0)
diff --git a/drivers/staging/rtl8723bs/include/ieee80211.h b/drivers/staging/rtl8723bs/include/ieee80211.h
index 9f421e4875..e8f99e700c 100644
--- a/drivers/staging/rtl8723bs/include/ieee80211.h
+++ b/drivers/staging/rtl8723bs/include/ieee80211.h
@@ -722,7 +722,7 @@ u8 *rtw_get_wps_attr_content(u8 *wps_ie, uint wps_ielen, u16 target_attr_id, u8
for (ie = (void *)buf; (((u8 *)ie) - ((u8 *)buf) + 1) < buf_len; \
ie = (void *)(((u8 *)ie) + *(((u8 *)ie) + 1) + 2))
-uint rtw_get_rateset_len(u8 *rateset);
+unsigned int rtw_get_rateset_len(u8 *rateset);
struct registry_priv;
int rtw_generate_ie(struct registry_priv *pregistrypriv);
---
base-commit: 758be99c46265b74476d5e1173d781abe325533e
change-id: 20260903-send-final-12f53f98a67d
Best regards,
--
Nicolas Giuliani <nicolas.giuliani@hotmail.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] staging: rtl8723bs: use unsigned int in rtw_get_rateset_len
2026-09-03 20:31 [PATCH] staging: rtl8723bs: use unsigned int in rtw_get_rateset_len Nicolas Giuliani via B4 Relay
@ 2026-09-04 4:23 ` Greg Kroah-Hartman
0 siblings, 0 replies; 2+ messages in thread
From: Greg Kroah-Hartman @ 2026-09-04 4:23 UTC (permalink / raw)
To: nicolas.giuliani; +Cc: linux-staging, linux-kernel
On Thu, Sep 03, 2026 at 10:31:46PM +0200, Nicolas Giuliani via B4 Relay wrote:
> From: Nicolas Giuliani <nicolas.giuliani@hotmail.com>
>
> Replace the uint typedef with unsigned int in rtw_get_rateset_len()
> and its declaration.
>
> This addresses the rtl8723bs TODO item to convert remaining unusual
> variable types. No functional change intended.
>
> Assisted-by: LLM
Please read:
https://lore.kernel.org/r/2026080354-skater-urgent-31b2@gregkh
why this is not a good idea for you to do be doing at all.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-09-04 4:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-03 20:31 [PATCH] staging: rtl8723bs: use unsigned int in rtw_get_rateset_len Nicolas Giuliani via B4 Relay
2026-09-04 4:23 ` Greg Kroah-Hartman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®