Re: [PATCH 1/2] staging: sm750fb: make const arrays static const char * const
From: Greg Kroah-Hartman
Date: Fri Jul 18 2025 - 03:46:11 EST
On Thu, Jul 17, 2025 at 11:49:13PM -0400, Ignacio Peña wrote:
> Fix checkpatch warning:
> "WARNING: static const char * array should probably be
> static const char * const"
>
> This makes both the array and its contents immutable, which is the
> intended behavior for these constant string arrays:
> - g_fbmode: array of framebuffer mode strings
> - fixId: array of framebuffer device names
>
> Signed-off-by: Ignacio Peña <ignacio.pena87@xxxxxxxxx>
> ---
> drivers/staging/sm750fb/sm750.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Always test-build your patches so you don't break maintainers workflow
by submitting patches that break the build :(
thanks,
greg k-h