lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAMBTqh1vYFeC2jwZ1mcpi_p865Eh=4FpFQdbhZ0ZEBkc4KbtRA@mail.gmail.com>
Date: Wed, 28 Jan 2026 14:15:28 -0600
From: Ethan Tidmore <ethantidmore06@...il.com>
To: Tanjim Kamal <tanjimkamal1@...il.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>, linux-staging@...ts.linux.dev, 
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] staging: rtl8723bs: constify _action_public_str array

On Wed, Jan 28, 2026 at 5:39 AM, Tanjim Kamal <tanjimkamal1@...il.com> wrote:
> This array is never modified. Add a second const to make the array
> itself be placed in read-only .rodata instead of just the strings it
> points to.
>
> Fix a WARNING issued by scripts/checkpatch.pl.
>
> Signed-off-by: Tanjim Kamal <tanjimkamal1@...il.com>

Reviewed-by: Ethan Tidmore <ethantidmore06@...il.com>

On Wed, Jan 28, 2026 at 5:39 AM Tanjim Kamal <tanjimkamal1@...il.com> wrote:
>
> This array is never modified. Add a second const to make the array
> itself be placed in read-only .rodata instead of just the strings it
> points to.
>
> Fix a WARNING issued by scripts/checkpatch.pl.
>
> Signed-off-by: Tanjim Kamal <tanjimkamal1@...il.com>
> ---
>  drivers/staging/rtl8723bs/core/rtw_ieee80211.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c b/drivers/staging/rtl8723bs/core/rtw_ieee80211.c
> index 92b12a13d..febc14de6 100644
> --- a/drivers/staging/rtl8723bs/core/rtw_ieee80211.c
> +++ b/drivers/staging/rtl8723bs/core/rtw_ieee80211.c
> @@ -1139,7 +1139,7 @@ int rtw_action_frame_parse(const u8 *frame, u32 frame_len, u8 *category, u8 *act
>         return true;
>  }
>
> -static const char *_action_public_str[] = {
> +static const char * const _action_public_str[] = {
>         "ACT_PUB_BSSCOEXIST",
>         "ACT_PUB_DSE_ENABLE",
>         "ACT_PUB_DSE_DEENABLE",
> --
> 2.47.3
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ