[Intel-xe] [drm-xe:drm-xe-next 1456/1905] drivers/gpu/drm/xe/xe_tile_sysfs.c:29:36: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'resource_size_t' {aka 'unsigned int'}
kernel test robot
lkp at intel.com
Sat Nov 4 09:58:23 UTC 2023
tree: https://gitlab.freedesktop.org/drm/xe/kernel.git drm-xe-next
head: bfa43da8e1f181fe2f8b84b39cb8a86e54f43731
commit: a8eff4f048bf2238bd686112c64bd6b6c5d99646 [1456/1905] drm/xe: Add sysfs entry to report per tile memory size
config: microblaze-allyesconfig (https://download.01.org/0day-ci/archive/20231104/202311041742.3dzKbpfj-lkp@intel.com/config)
compiler: microblaze-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231104/202311041742.3dzKbpfj-lkp@intel.com/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 at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311041742.3dzKbpfj-lkp@intel.com/
All warnings (new ones prefixed by >>):
drivers/gpu/drm/xe/xe_tile_sysfs.c: In function 'physical_vram_size_bytes_show':
>> drivers/gpu/drm/xe/xe_tile_sysfs.c:29:36: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'resource_size_t' {aka 'unsigned int'} [-Wformat=]
29 | return sysfs_emit(buf, "%llu\n", tile->mem.vram.actual_physical_size);
| ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| | |
| | resource_size_t {aka unsigned int}
| long long unsigned int
| %u
vim +29 drivers/gpu/drm/xe/xe_tile_sysfs.c
22
23 static ssize_t
24 physical_vram_size_bytes_show(struct device *kdev, struct device_attribute *attr,
25 char *buf)
26 {
27 struct xe_tile *tile = kobj_to_tile(&kdev->kobj);
28
> 29 return sysfs_emit(buf, "%llu\n", tile->mem.vram.actual_physical_size);
30 }
31
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the Intel-xe
mailing list