From: "Ethan Tidmore" <ethantidmore06@gmail.com>
To: "Ethan Luna" <trunixcodes@zohomail.com>, <gregkh@linuxfoundation.org>
Cc: <linux-staging@lists.linux.dev>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] staging: rtl8723bs: remove NDIS_802_11_RATES typedef
Date: Tue, 10 Feb 2026 21:26:44 -0600 [thread overview]
Message-ID: <DGBT9JBFPRLY.PQX59G71WEAM@gmail.com> (raw)
In-Reply-To: <20260211024115.31339-1-trunixcodes@zohomail.com>
On Tue Feb 10, 2026 at 8:41 PM CST, Ethan Luna wrote:
> The kernel coding style discourages typedefs, especially those that hide
> array types. Remove the NDIS_802_11_RATES typedef and replace its users
> with explicit unsigned char arrays.
>
> No functional changes.
>
> Signed-off-by: Ethan Luna <trunixcodes@zohomail.com>
> ---
You sent the exact same patch twice. As far as I can tell I don't see a
difference between them? However, had this been a revision, please only
send them every 24 hours.
> drivers/staging/rtl8723bs/include/wlan_bssdef.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/rtl8723bs/include/wlan_bssdef.h b/drivers/staging/rtl8723bs/include/wlan_bssdef.h
> index eb38594c8f5c..6ad73d4de6bf 100644
> --- a/drivers/staging/rtl8723bs/include/wlan_bssdef.h
> +++ b/drivers/staging/rtl8723bs/include/wlan_bssdef.h
> @@ -16,7 +16,7 @@
> #define NDIS_802_11_LENGTH_RATES_EX 16
>
> typedef unsigned char NDIS_802_11_MAC_ADDRESS[6];
> -typedef unsigned char NDIS_802_11_RATES[NDIS_802_11_LENGTH_RATES]; /* Set of 8 data rates */
> +unsigned char NDIS_802_11_RATES[NDIS_802_11_LENGTH_RATES]; /* Set of 8 data rates */
> typedef unsigned char NDIS_802_11_RATES_EX[NDIS_802_11_LENGTH_RATES_EX]; /* Set of 16 data rates */
>
> struct ndis_802_11_ssid {
By removing the typedef you made this a global char array, just remove
the line entirely. And actually replace the users of this typedef. Which
you said you did in your patch notes?
Thanks,
ET
next prev parent reply other threads:[~2026-02-11 3:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-11 2:41 [PATCH] staging: rtl8723bs: remove NDIS_802_11_RATES typedef Ethan Luna
2026-02-11 3:26 ` Ethan Tidmore [this message]
2026-02-13 15:34 ` kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2026-02-11 2:01 Ethan Luna
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DGBT9JBFPRLY.PQX59G71WEAM@gmail.com \
--to=ethantidmore06@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=trunixcodes@zohomail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox