]> www.infradead.org Git - users/jedix/linux-maple.git/commit
accel/qaic: Change aic100_image_table definition
authorYoussef Samir <quic_yabdulra@quicinc.com>
Fri, 13 Dec 2024 18:51:10 +0000 (11:51 -0700)
committerJeffrey Hugo <quic_jhugo@quicinc.com>
Fri, 17 Jan 2025 16:04:09 +0000 (09:04 -0700)
commit931a765c2d95c46cb818eccc641006c86697486f
tree98dfca5c2d3992e78fec7a6ce0800ef2716037a1
parent713a341836942d2b3ea4463377cb8c8f7fc37a26
accel/qaic: Change aic100_image_table definition

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@quicinc.com>
Reviewed-by: Carl Vanderlip <quic_carlv@quicinc.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Signed-off-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Reviewed-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241213185110.2469159-1-quic_jhugo@quicinc.com
drivers/accel/qaic/sahara.c