[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260109164140.11350-1-ahmet@sezginduran.net>
Date: Fri, 9 Jan 2026 16:41:40 +0000
From: Ahmet Sezgin Duran <ahmet@...ginduran.net>
To: gregkh@...uxfoundation.org
Cc: linux-staging@...ts.linux.dev,
linux-kernel@...r.kernel.org,
ahmet@...ginduran.net
Subject: [PATCH] staging: sm750fb: make g_fbmode a fixed-size mutable array
g_fbmode is modified at runtime. Use an explicit fixed-size array to
avoid a misleading checkpatch warning.
No functional changes.
Signed-off-by: Ahmet Sezgin Duran <ahmet@...ginduran.net>
---
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..8f8feb73f61b 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 *g_fbmode[2] = {NULL, NULL};
static const char *g_def_fbmode = "1024x768-32@60";
static char *g_settings;
static int g_dualview;
--
2.47.3
Powered by blists - more mailing lists