* [PATCH][next] drm/amdgpu: make the read-only const array fw_err_code_msg static
@ 2026-11-10 16:04 Colin Ian King
0 siblings, 0 replies; only message in thread
From: Colin Ian King @ 2026-11-10 16:04 UTC (permalink / raw)
To: Alex Deucher, Christian König, David Airlie, Simona Vetter,
Felix Kuehling, Mukul Joshi, Philip Yang, Lijo Lazar, amd-gfx,
dri-devel
Cc: kernel-janitors, linux-kernel
Don't populate the read-only const array fw_err_code_msg on the stack
at run time, instead make it static
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c
index d025b4183b29..91c863649972 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ualink.c
@@ -5427,7 +5427,7 @@ static int amdgpu_ualink_metadata_init(struct amdgpu_device *adev)
*/
static void amdgpu_ualink_remote_error(struct amdgpu_device *adev, u32 status)
{
- const char *fw_err_code_msg[] = {
+ static const char * const fw_err_code_msg[] = {
"Unknown FW error status",
"FIFO overflow", /* error code 1 */
"Invalid RB command",
--
2.55.0
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-10 16:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-10 16:04 [PATCH][next] drm/amdgpu: make the read-only const array fw_err_code_msg static Colin Ian King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®