[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260127164816.91481-1-madhuananda18@gmail.com>
Date: Tue, 27 Jan 2026 16:48:15 +0000
From: Madhumitha Sundar <madhuananda18@...il.com>
To: gregkh@...uxfoundation.org
Cc: linux-staging@...ts.linux.dev,
linux-kernel@...r.kernel.org,
Madhumitha Sundar <madhuananda18@...il.com>
Subject: [PATCH v2] staging: sm750fb: make fix_id array fully const
The fix_id array contains constant string literals, but the array itself
is currently mutable. Make the array const so that the compiler can
place it in the .rodata section.
This fixes the checkpatch warning:
static const char * array should probably be static const char * const
Signed-off-by: Madhumitha Sundar <madhuananda18@...il.com>
---
drivers/staging/sm750fb/sm750.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c
index d100b9e1d3d5..092cfbadada4 100644
--- a/drivers/staging/sm750fb/sm750.c
+++ b/drivers/staging/sm750fb/sm750.c
@@ -740,7 +740,7 @@ static int lynxfb_set_fbinfo(struct fb_info *info, int index)
"kernel HELPERS prepared vesa_modes",
};
- static const char *fix_id[2] = {
+ static const char * const fix_id[2] = {
"sm750_fb1", "sm750_fb2",
};
--
2.43.0
Powered by blists - more mailing lists