[PATCH] accel/qaic: Change aic100_image_table definition
Jeffrey Hugo
quic_jhugo at quicinc.com
Fri Jan 17 16:05:15 UTC 2025
On 12/13/2024 11:51 AM, Jeffrey Hugo wrote:
> From: Youssef Samir <quic_yabdulra at quicinc.com>
>
> aic100_image_table is currently defined as a "const char *" array,
> this can potentially lead to the accidental modification of the
> pointers inside. Also, checkpatch.pl gives a warning about it.
>
> Change the type to a "const char * const" array to make the pointers
> immutable, preventing accidental modification of the images' paths.
>
> Signed-off-by: Youssef Samir <quic_yabdulra at quicinc.com>
> Reviewed-by: Carl Vanderlip <quic_carlv at quicinc.com>
> Reviewed-by: Jeffrey Hugo <quic_jhugo at quicinc.com>
> Signed-off-by: Jeffrey Hugo <quic_jhugo at quicinc.com>
Applied to drm-misc-next
More information about the dri-devel
mailing list