mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00

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
30 lines
681 B
C
30 lines
681 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (C) 2024 Raspberry Pi
|
|
*/
|
|
#ifndef V3D_PERFORMANCE_COUNTERS_H
|
|
#define V3D_PERFORMANCE_COUNTERS_H
|
|
|
|
/* Holds a description of a given performance counter. The index of performance
|
|
* counter is given by the array on v3d_performance_counter.h
|
|
*/
|
|
struct v3d_perf_counter_desc {
|
|
/* Category of the counter */
|
|
char category[32];
|
|
|
|
/* Name of the counter */
|
|
char name[64];
|
|
|
|
/* Description of the counter */
|
|
char description[256];
|
|
};
|
|
|
|
|
|
#define V3D_V42_NUM_PERFCOUNTERS (87)
|
|
#define V3D_V71_NUM_PERFCOUNTERS (93)
|
|
|
|
/* Maximum number of performance counters supported by any version of V3D */
|
|
#define V3D_MAX_COUNTERS (93)
|
|
|
|
#endif
|