diff options
| author | Len Bao <len.bao@gmx.us> | 2026-05-16 14:23:21 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-05-21 12:40:04 +0200 |
| commit | ddf58ed94154c883590c58ceec05b77cacf5805e (patch) | |
| tree | 4f606026d9f22303e414e668520882d75597efe8 /drivers/staging | |
| parent | bfe73cfa779f55ce5fe1899133cf6ca86720a86a (diff) | |
staging: sm750fb: Mark g_noaccel, g_nomtrr and g_dualview as __ro_after_init
The 'g_noaccel', 'g_nomtrr' and 'g_dualview' variables are initialized
only during the init phase in the 'lynxfb_setup' function and never
changed. So, mark them as __ro_after_init.
Signed-off-by: Len Bao <len.bao@gmx.us>
Link: https://patch.msgid.link/20260516142326.36018-1-len.bao@gmx.us
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
| -rw-r--r-- | drivers/staging/sm750fb/sm750.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c index d26e9fab846a..89c811e0806c 100644 --- a/drivers/staging/sm750fb/sm750.c +++ b/drivers/staging/sm750fb/sm750.c @@ -19,12 +19,12 @@ /* common var for all device */ static int g_hwcursor = 1; -static int g_noaccel; -static int g_nomtrr; +static int g_noaccel __ro_after_init; +static int g_nomtrr __ro_after_init; static const char *g_fbmode[] = {NULL, NULL}; static const char *g_def_fbmode = "1024x768-32@60"; static char *g_settings; -static int g_dualview; +static int g_dualview __ro_after_init; static char *g_option; static const struct fb_videomode lynx750_ext[] = { |
