From: "dipesh chaudhary" <me@dipeshchaudhary.in>
To: <gregkh@linuxfoundation.org>
Cc: <trohan2000@gmail.com>, <s9430939@naver.com>,
<dan.carpenter@linaro.org>, <ethantidmore06@gmail.com>,
<davidzalman.101@gmail.com>, <linux-staging@lists.linux.dev>,
<linux-kernel@vger.kernel.org>,
"dipesh chaudhary" <me@dipeshchaudhary.in>
Subject: [PATCH] staging: sm750fb: constify g_fbmode array
Date: Mon, 9 Mar 2026 10:48:24 +0000 [thread overview]
Message-ID: <94d7fb21-c54e-4acc-a2d9-08097fc133e9@smtp-relay.sendinblue.com> (raw)
In-Reply-To: <20260309104824.294332-1-me@dipeshchaudhary.in>
Fix checkpatch warning for static const char array. Make the array of pointers read-only to improve memory safety.
Signed-off-by: dipesh chaudhary <me@dipeshchaudhary.in>
---
Makefile | 6 +++---
drivers/staging/sm750fb/sm750.c | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
index df471d4212cc..e944c6e71e81 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,8 @@
# SPDX-License-Identifier: GPL-2.0
-VERSION = 6
-PATCHLEVEL = 19
+VERSION = 7
+PATCHLEVEL = 0
SUBLEVEL = 0
-EXTRAVERSION =
+EXTRAVERSION = -rc1
NAME = Baby Opossum Posse
# *DOCUMENTATION*
diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c
index dec1f6b88a7d..08d4979c6755 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.47.3
next parent reply other threads:[~2026-03-09 10:48 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20260309104824.294332-1-me@dipeshchaudhary.in>
2026-03-09 10:48 ` dipesh chaudhary [this message]
2026-11-06 16:49 Kurmapu Sai Devansh Prasad
2026-11-08 1:25 ` kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2026-03-09 10:50 dipesh chaudhary
2026-03-09 10:13 dipesh chaudhary
2026-03-09 10:06 dipesh chaudhary
[not found] <9e566c42-8ec3-4d06-91be-0489de4e91c0@smtp-relay.sendinblue.com>
2026-03-09 9:56 ` Greg KH
2026-03-09 9:49 dipesh chaudhary
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=94d7fb21-c54e-4acc-a2d9-08097fc133e9@smtp-relay.sendinblue.com \
--to=me@dipeshchaudhary.in \
--cc=dan.carpenter@linaro.org \
--cc=davidzalman.101@gmail.com \
--cc=ethantidmore06@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
--cc=s9430939@naver.com \
--cc=trohan2000@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®