mirror-linux/drivers/gpu/drm/v3d
Tvrtko Ursulin 9c3951ec27
drm/v3d: Fix perfmon build error/warning
Move static const array into the source file to fix the "defined but not
used" errors.

The fix is perhaps not the prettiest due hand crafting the array sizes
in v3d_performance_counters.h, but I did add some build time asserts to
validate the counts look sensible, so hopefully it is good enough for a
quick fix.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Fixes: 3cbcbe016c ("drm/v3d: Add Performance Counters descriptions for V3D 4.2 and 7.1")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202405211137.hueFkLKG-lkp@intel.com/Cc: Maíra Canal <mcanal@igalia.com>
Cc: Iago Toral Quiroga <itoral@igalia.com>
Cc: Jani Nikula <jani.nikula@linux.intel.com>
Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240604160210.24073-1-tursulin@igalia.com
2024-06-05 10:44:51 +02:00
..
Kconfig
Makefile drm/v3d: Detach job submissions IOCTLs to a new specific file 2023-12-01 09:34:01 -03:00
v3d_bo.c fix missing vmalloc.h includes 2024-04-25 20:55:49 -07:00
v3d_debugfs.c drm/v3d: Enable V3D to use different PAGE_SIZE 2024-02-23 16:37:20 -03:00
v3d_drv.c drm/v3d: Fix perfmon build error/warning 2024-06-05 10:44:51 +02:00
v3d_drv.h drm/v3d: Fix perfmon build error/warning 2024-06-05 10:44:51 +02:00
v3d_fence.c
v3d_gem.c drm/v3d: Fix race-condition between sysfs/fdinfo and interrupt handler 2024-04-23 19:32:49 -03:00
v3d_irq.c drm/v3d: Create two functions to update all GPU stats variables 2024-04-23 19:32:45 -03:00
v3d_mmu.c drm/v3d: Enable V3D to use different PAGE_SIZE 2024-02-23 16:37:20 -03:00
v3d_perfmon.c drm/v3d: Fix perfmon build error/warning 2024-06-05 10:44:51 +02:00
v3d_performance_counters.h drm/v3d: Fix perfmon build error/warning 2024-06-05 10:44:51 +02:00
v3d_regs.h drm/v3d: fix up register addresses for V3D 7.x 2023-11-02 08:54:39 -03:00
v3d_sched.c drm/v3d: Use V3D_MAX_COUNTERS instead of V3D_PERFCNT_NUM 2024-05-20 16:38:03 -03:00
v3d_submit.c drm/v3d: Free the job and assign it to NULL if initialization fails 2024-01-11 11:23:13 -03:00
v3d_sysfs.c drm/v3d: Decouple stats calculation from printing 2024-04-23 19:32:48 -03:00
v3d_trace.h drm/v3d: Create tracepoints to track the CPU job 2023-12-01 09:37:48 -03:00
v3d_trace_points.c