linux/drivers/gpu/drm/panthor
Steven Price 3b87886bfb drm/panthor: Clean up FW version information display
Assigning a string to an array which is too small to include the NUL
byte at the end causes a warning on some compilers. But this function
also has some other oddities like the 'header' array which is only ever
used within sizeof().

Tidy up the function by removing the 'header' array, allow the NUL byte
to be present in git_sha_header, and calculate the length directly from
git_sha_header.

Reported-by: Will Deacon <will@kernel.org>
Closes: https://lore.kernel.org/all/20250213154237.GA11897@willie-the-truck/
Fixes: 9d443deb04 ("drm/panthor: Display FW version information")
Signed-off-by: Steven Price <steven.price@arm.com>
Acked-by: Will Deacon <will@kernel.org>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250213161248.1642392-1-steven.price@arm.com
2025-03-05 14:15:04 +00:00
..
Kconfig Revert "drm/panthor: Fix undefined panthor_device_suspend/resume symbol issue" 2024-03-11 14:16:10 +02:00
Makefile drm/panthor: Allow driver compilation 2024-03-01 10:04:29 +01:00
panthor_devfreq.c drm/panthor: Ignore devfreq_{suspend, resume}_device() failures 2024-12-11 10:03:59 +01:00
panthor_devfreq.h drm/panthor: Ignore devfreq_{suspend, resume}_device() failures 2024-12-11 10:03:59 +01:00
panthor_device.c drm/panthor: Fix a race between the reset and suspend path 2025-01-13 11:26:20 +00:00
panthor_device.h drm/panthor: Fix the fast-reset logic 2024-12-11 10:04:12 +01:00
panthor_drv.c Linux 6.14-rc4 2025-02-25 17:36:09 +10:00
panthor_fw.c drm/panthor: Clean up FW version information display 2025-03-05 14:15:04 +00:00
panthor_fw.h drm/panthor: Update CS_STATUS_ defines to correct values 2025-03-05 11:09:17 +00:00
panthor_gem.c Backmerge v6.12-rc6 of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux into drm-next 2024-11-04 14:25:33 +10:00
panthor_gem.h drm/panthor: Remove dead code 2025-01-13 08:46:10 +00:00
panthor_gpu.c drm/panthor: Fix the fast-reset logic 2024-12-11 10:04:12 +01:00
panthor_gpu.h drm/panthor: Add DEV_QUERY_TIMESTAMP_INFO dev query 2024-09-05 09:38:17 +02:00
panthor_heap.c drm/panthor: Avoid sleep locking in the internal BO size path 2025-03-05 14:14:52 +00:00
panthor_heap.h drm/panthor: Expose size of driver internal BO's over fdinfo 2025-02-07 15:23:39 +01:00
panthor_mmu.c drm/panthor: Avoid sleep locking in the internal BO size path 2025-03-05 14:14:52 +00:00
panthor_mmu.h drm/panthor: Expose size of driver internal BO's over fdinfo 2025-02-07 15:23:39 +01:00
panthor_regs.h
panthor_sched.c drm/panthor: Replace sleep locks with spinlocks in fdinfo path 2025-03-05 14:03:56 +00:00
panthor_sched.h drm/panthor: Expose size of driver internal BO's over fdinfo 2025-02-07 15:23:39 +01:00