[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <2026011155-unworried-service-d78e@gregkh>
Date: Sun, 11 Jan 2026 13:58:20 +0100
From: Greg KH <gregkh@...uxfoundation.org>
To: Lorenzo Simonelli <lorenzosimonelli02@...il.com>
Cc: sudipm.mukherjee@...il.com, teddy.wang@...iconmotion.com,
linux-staging@...ts.linux.dev, linux-kernel@...r.kernel.org,
linux-fbdev@...r.kernel.org
Subject: Re: [PATCH 1/3] staging: sm750fb: fix static const char array warning
On Wed, Jan 07, 2026 at 10:47:12AM +0100, Lorenzo Simonelli wrote:
> Fix the checkpatch.pl warning: "static const char * array should
> probably be static const char * const" by adding the missing
> const modifier.
>
> Signed-off-by: Lorenzo Simonelli <lorenzosimonelli02@...il.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 fecd7457e..15b5de33b 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.52.0
>
Please ALWAYS test-build your patches before sending them out. That way
you catch obvious bugs like the one that this change introduces :(
thanks,
greg k-h
Powered by blists - more mailing lists