2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/gpu/drm/panthor
Adrián Larumbe c1a32a041a drm/panthor: Fix build warning when DEBUG_FS is disabled
Commit a3707f53eb ("drm/panthor: show device-wide list of DRM GEM
objects over DebugFS") causes a build warning and linking error when
built without support for DebugFS, because of a non-inline non-static
function declaration in a header file.

On top of that, the function is only being used inside a single
compilation unit, so there is no point in exposing it as a global
symbol.

This is a follow-up from Arnd Bergmann's first fix.
Also move panthor_gem_debugfs_set_usage_flags() into panthor_gem.c and
declare it static.

Fixes: a3707f53eb ("drm/panthor: show device-wide list of DRM GEM objects over DebugFS")
Reported-by: Arnd Bergmann <arnd@arndb.de>
Closes: https://lore.kernel.org/dri-devel/20250424142419.47b9d457@collabora.com/T/#t
Signed-off-by: Adrián Larumbe <adrian.larumbe@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://lore.kernel.org/r/20250424184041.356191-1-adrian.larumbe@collabora.com
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
2025-04-29 18:12:23 +02: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: show device-wide list of DRM GEM objects over DebugFS 2025-04-23 10:35:36 +02:00
panthor_device.h drm/panthor: show device-wide list of DRM GEM objects over DebugFS 2025-04-23 10:35:36 +02:00
panthor_drv.c drm/panthor: show device-wide list of DRM GEM objects over DebugFS 2025-04-23 10:35:36 +02:00
panthor_fw.c drm/panthor: Label all kernel BO's 2025-04-23 10:35:35 +02:00
panthor_fw.h drm/panthor: Update CS_STATUS_ defines to correct values 2025-03-05 11:09:17 +00:00
panthor_gem.c drm/panthor: Fix build warning when DEBUG_FS is disabled 2025-04-29 18:12:23 +02:00
panthor_gem.h drm/panthor: Fix build warning when DEBUG_FS is disabled 2025-04-29 18:12:23 +02:00
panthor_gpu.c drm/panthor: Let IRQ handlers clear the interrupts themselves 2025-04-10 15:00:11 +02: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: Label all kernel BO's 2025-04-23 10:35:35 +02: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: Test for imported buffers with drm_gem_is_imported() 2025-04-14 10:53:11 +02: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 drm/panthor: Fix GPU_COHERENCY_ACE[_LITE] definitions 2025-04-10 15:00:11 +02:00
panthor_sched.c drm/panthor: Label all kernel BO's 2025-04-23 10:35:35 +02:00
panthor_sched.h drm/panthor: Expose size of driver internal BO's over fdinfo 2025-02-07 15:23:39 +01:00