* [PATCH] staging: sm750fb: make g_fbmode array static const char * const
@ 2026-11-09 11:58 Daniil Demakov
0 siblings, 0 replies; only message in thread
From: Daniil Demakov @ 2026-11-09 11:58 UTC (permalink / raw)
To: gregkh; +Cc: linux-kernel, Daniil Demakov
Fix a checkpatch warning by adding the second const to the
g_fbmode array. This ensures it is properly marked as read-only.
Signed-off-by: Daniil Demakov <t3127430@gmail.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 21e310274330..47d2917cc1d6 100644
--- a/drivers/staging/sm750fb/sm750.c
+++ b/drivers/staging/sm750fb/sm750.c
@@ -12,7 +12,7 @@
static int g_hwcursor = 1;
static int g_noaccel __ro_after_init;
static int g_nomtrr __ro_after_init;
-static const char *g_fbmode[] = {NULL, NULL};
+static const char * const g_fbmode[] = {NULL, NULL};
static const char * const g_def_fbmode = "1024x768-32@60";
static char *g_settings;
static int g_dualview __ro_after_init;
--
2.56.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-09 11:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-09 11:58 [PATCH] staging: sm750fb: make g_fbmode array static const char * const Daniil Demakov
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®