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
Sun Dec 24 07:59:34 UTC 2023
Hi Tejas,
FYI, the error/warning still remains.
tree: https://gitlab.freedesktop.org/drm/xe/kernel.git new
head: f30cae3de3b138849010f4e54d8800eb1cc080b9
commit: a8eff4f048bf2238bd686112c64bd6b6c5d99646 drm/xe: Add sysfs entry to report per tile memory size
date: 10 weeks ago
config: microblaze-allyesconfig (https://download.01.org/0day-ci/archive/20231224/202312241523.F6YQjyeJ-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/20231224/202312241523.F6YQjyeJ-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/202312241523.F6YQjyeJ-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