Re: [PATCH] staging: sm750fb: make g_fbmode[] a read-only pointer array

From: Dan Carpenter
Date: Fri Jun 27 2025 - 13:35:31 EST


On Fri, Jun 27, 2025 at 11:01:20PM +0530, Manish Kumar wrote:
> This fixes a checkpatch warning by changing the declaration of g_fbmode[]
> from 'static const char *' to 'static const char * const', making both the
> string contents and the array elements read-only.
>
> Signed-off-by: Manish Kumar <manish1588@xxxxxxxxx>

This breaks the build. Now we can't change the pointer to anythine else
except NULL.

regards,
dan carpenter