drivers/gpu/drm/xe/xe_eu_stall.c:123:11: sparse: sparse: symbol 'eu_stall_sampling_rates' was not declared. Should it be static?
From: kernel test robot
Date: Mon Feb 16 2026 - 20:50:15 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 9702969978695d9a699a1f34771580cdbb153b33
commit: cd5bbb2532f276626d1416b237676772bb61f11e drm/xe/uapi: Add a device query to get EU stall sampling information
date: 12 months ago
config: csky-randconfig-r134-20260217 (https://download.01.org/0day-ci/archive/20260217/202602170958.bPmOaHqK-lkp@xxxxxxxxx/config)
compiler: csky-linux-gcc (GCC) 13.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260217/202602170958.bPmOaHqK-lkp@xxxxxxxxx/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202602170958.bPmOaHqK-lkp@xxxxxxxxx/
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/xe/xe_eu_stall.c:123:11: sparse: sparse: symbol 'eu_stall_sampling_rates' was not declared. Should it be static?
drivers/gpu/drm/xe/xe_eu_stall.c: note: in included file (through include/linux/sched/task.h, include/linux/sched/signal.h, include/linux/rcuwait.h, ...):
include/linux/uaccess.h:111:38: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
include/linux/uaccess.h:111:38: sparse: expected void const *from
include/linux/uaccess.h:111:38: sparse: got void const [noderef] __user *from
include/linux/uaccess.h:111:38: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void const *from @@ got void const [noderef] __user *from @@
include/linux/uaccess.h:111:38: sparse: expected void const *from
include/linux/uaccess.h:111:38: sparse: got void const [noderef] __user *from
vim +/eu_stall_sampling_rates +123 drivers/gpu/drm/xe/xe_eu_stall.c
122
> 123 const u64 eu_stall_sampling_rates[] = {251, 251 * 2, 251 * 3, 251 * 4, 251 * 5, 251 * 6, 251 * 7};
124
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki