public inbox for linux-fbdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: sm750fb: fix static const char * warning
@ 2026-03-09  0:28 sluisr
  2026-03-09 16:01 ` Greg KH
  2026-03-13 14:47 ` kernel test robot
  0 siblings, 2 replies; 3+ messages in thread
From: sluisr @ 2026-03-09  0:28 UTC (permalink / raw)
  To: sudipm.mukherjee, teddy.wang
  Cc: gregkh, linux-fbdev, linux-staging, linux-kernel, sluisr

This patch fixes a checkpatch.pl warning:
WARNING: static const char * array should probably be static const char * const
by adding the missing const keyword to the g_fbmode array declaration.

Signed-off-by: sluisr <contact@sluisr.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 dec1f6b88..08d4979c6 100644
--- a/drivers/staging/sm750fb/sm750.c
+++ b/drivers/staging/sm750fb/sm750.c
@@ -33,7 +33,7 @@
 static int g_hwcursor = 1;
 static int g_noaccel;
 static int g_nomtrr;
-static const char *g_fbmode[] = {NULL, NULL};
+static const char * const g_fbmode[] = {NULL, NULL};
 static const char *g_def_fbmode = "1024x768-32@60";
 static char *g_settings;
 static int g_dualview;
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-03-13 14:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-09  0:28 [PATCH] staging: sm750fb: fix static const char * warning sluisr
2026-03-09 16:01 ` Greg KH
2026-03-13 14:47 ` kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox