]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
staging: rtl8723bs: constify _action_public_str array
authorTanjim Kamal <tanjimkamal1@gmail.com>
Wed, 28 Jan 2026 11:38:59 +0000 (17:38 +0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Feb 2026 12:04:57 +0000 (13:04 +0100)
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@gmail.com>
Reviewed-by: Ethan Tidmore <ethantidmore06@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/20260128113900.44852-1-tanjimkamal1@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_ieee80211.c

index 92b12a13d27cf3926aef2d3cfe98143ad82f8e07..febc14de6bc016858d8a83de93f5f9f3427f4a94 100644 (file)
@@ -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",