[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <aHq33vXh0F481FB-@MacBook-Pro-de-Ignacio.local>
Date: Fri, 18 Jul 2025 17:08:46 -0400
From: Ignacio Peña <ignacio.pena87@...il.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org,
Dan Carpenter <dan.carpenter@...aro.org>
Subject: [PATCH v4] staging: sm750fb: make fixId array static const char *
const
Fix checkpatch warning for the fixId array only:
"WARNING: static const char * array should probably be
static const char * const"
The g_fbmode array cannot be made const as it is modified at runtime
in lynxfb_setup() and lynx_alloc().
Signed-off-by: Ignacio Peña <ignacio.pena87@...il.com>
---
v4: Sorry for the confusion. Previous versions had wrong line numbers
or included changes to g_fbmode. This version ONLY changes fixId
at the correct line number (734) against current mainline.
v3: Apologies for the confusion. v2 accidentally included changes to
g_fbmode which breaks the build. This version ONLY changes fixId
which is never modified.
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 1d929aca3..82e01f114 100644
--- a/drivers/staging/sm750fb/sm750.c
+++ b/drivers/staging/sm750fb/sm750.c
@@ -734,7 +734,7 @@ static int lynxfb_set_fbinfo(struct fb_info *info, int index)
"kernel HELPERS prepared vesa_modes",
};
- static const char *fixId[2] = {
+ static const char * const fixId[2] = {
"sm750_fb1", "sm750_fb2",
};
--
2.39.5
Powered by blists - more mailing lists