Re: [PATCH v8 1/3] drm/panthor: Add perf setup and session management

From: kernel test robot

Date: Sat Nov 28 2026 - 10:34:24 EST


Hi Lukas,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 97429bac371273886238bfcf63d78e7405cacb46]

url: https://github.com/intel-lab-lkp/linux/commits/Lukas-Zapolskas/drm-panthor-Add-perf-setup-and-session-management/20261126-205737
base: 97429bac371273886238bfcf63d78e7405cacb46
patch link: https://lore.kernel.org/r/20261126-panthor-performance-counters-v8-1-6e7db0ec33f5%40arm.com
patch subject: [PATCH v8 1/3] drm/panthor: Add perf setup and session management
config: arm-randconfig-1000-20261128 (https://download.01.org/0day-ci/archive/20261128/20261128232712.EoUTx6tg-lkp@xxxxxxxxx/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project a9b3c3f36e3a7aa55863319fc716f9665aa13fd1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261128/20261128232712.EoUTx6tg-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/20261128232712.EoUTx6tg-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/panthor/panthor_perf.c:256:4: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat]
255 | "Perf BO expected min size %lu, passed BO with size %lu\n",
| ~~~
| %zu
256 | min_size, obj->size);
| ^~~~~~~~
include/drm/drm_print.h:628:46: note: expanded from macro 'drm_err'
628 | __drm_printk((drm), err,, "*ERROR* " fmt, ##__VA_ARGS__)
| ~~~ ^~~~~~~~~~~
include/drm/drm_print.h:615:55: note: expanded from macro '__drm_printk'
615 | dev_##level##type(__drm_to_dev(drm), "[drm] " fmt, ##__VA_ARGS__)
| ~~~ ^~~~~~~~~~~
include/linux/dev_printk.h:154:65: note: expanded from macro 'dev_err'
154 | dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ~~~ ^~~~~~~~~~~
include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ~~~ ^~~~~~~~~~~
drivers/gpu/drm/panthor/panthor_perf.c:256:14: warning: format specifies type 'unsigned long' but the argument has type 'size_t' (aka 'unsigned int') [-Wformat]
255 | "Perf BO expected min size %lu, passed BO with size %lu\n",
| ~~~
| %zu
256 | min_size, obj->size);
| ^~~~~~~~~
include/drm/drm_print.h:628:46: note: expanded from macro 'drm_err'
628 | __drm_printk((drm), err,, "*ERROR* " fmt, ##__VA_ARGS__)
| ~~~ ^~~~~~~~~~~
include/drm/drm_print.h:615:55: note: expanded from macro '__drm_printk'
615 | dev_##level##type(__drm_to_dev(drm), "[drm] " fmt, ##__VA_ARGS__)
| ~~~ ^~~~~~~~~~~
include/linux/dev_printk.h:154:65: note: expanded from macro 'dev_err'
154 | dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ~~~ ^~~~~~~~~~~
include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ~~~ ^~~~~~~~~~~
2 warnings generated.


vim +256 drivers/gpu/drm/panthor/panthor_perf.c

234
235 static int
236 panthor_perf_bo_get(struct drm_file *file, u32 handle, size_t min_size,
237 struct panthor_perf_bo *bo)
238 {
239 struct drm_device *ddev = file->minor->dev;
240 struct drm_gem_object *obj;
241 struct iosys_map map;
242 int ret;
243
244 if (WARN_ON_ONCE(!bo))
245 return -EINVAL;
246
247 obj = drm_gem_object_lookup(file, handle);
248 if (!obj) {
249 drm_err(ddev, "Could not find handle %d!\n", handle);
250 return -EINVAL;
251 }
252
253 if (obj->size < min_size) {
254 drm_err(ddev,
255 "Perf BO expected min size %lu, passed BO with size %lu\n",
> 256 min_size, obj->size);
257 ret = -ENOMEM;
258 goto err_put;
259 }
260
261 ret = drm_gem_vmap(obj, &map);
262 if (ret)
263 goto err_put;
264
265 bo->obj = obj;
266 bo->vaddr = map.vaddr;
267
268 return 0;
269
270 err_put:
271 drm_gem_object_put(obj);
272 return ret;
273 }
274

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki