include/trace/../../drivers/gpu/drm/xe/xe_trace.h:35:42: warning: cast from pointer to integer of different size
kernel test robot
lkp at intel.com
Sun Dec 24 04:34:51 UTC 2023
Hi Matthew,
FYI, the error/warning still remains.
tree: https://gitlab.freedesktop.org/drm/xe/kernel.git new
head: f30cae3de3b138849010f4e54d8800eb1cc080b9
commit: ea1dfd1fe8933f85ee3a2b3d6ad6b378d5b1a468 drm/xe: Introduce a new DRM driver for Intel GPUs
date: 10 weeks ago
config: microblaze-allyesconfig (https://download.01.org/0day-ci/archive/20231224/202312241228.8NJFlChe-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/202312241228.8NJFlChe-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/202312241228.8NJFlChe-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from drivers/gpu/drm/xe/xe_mmio.c:6:
drivers/gpu/drm/xe/xe_mmio.h: In function 'xe_mmio_write64':
drivers/gpu/drm/xe/xe_mmio.h:69:9: error: implicit declaration of function 'writeq'; did you mean 'writel'? [-Werror=implicit-function-declaration]
69 | writeq(val, gt->mmio.regs + reg);
| ^~~~~~
| writel
drivers/gpu/drm/xe/xe_mmio.h: In function 'xe_mmio_read64':
drivers/gpu/drm/xe/xe_mmio.h:77:16: error: implicit declaration of function 'readq'; did you mean 'readl'? [-Werror=implicit-function-declaration]
77 | return readq(gt->mmio.regs + reg);
| ^~~~~
| readl
In file included from include/linux/device.h:15,
from include/drm/drm_print.h:32,
from include/drm/drm_mm.h:51,
from include/drm/drm_suballoc.h:9,
from drivers/gpu/drm/xe/xe_sa_types.h:8,
from drivers/gpu/drm/xe/xe_gt_types.h:13,
from drivers/gpu/drm/xe/xe_mmio.h:11:
drivers/gpu/drm/xe/xe_mmio.c: In function 'xe_mmio_probe_vram':
>> include/drm/drm_print.h:456:39: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'resource_size_t' {aka 'unsigned int'} [-Wformat=]
456 | dev_##level##type((drm)->dev, "[drm] " fmt, ##__VA_ARGS__)
| ^~~~~~~~
include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap'
110 | _p_func(dev, fmt, ##__VA_ARGS__); \
| ^~~
include/linux/dev_printk.h:146:61: note: in expansion of macro 'dev_fmt'
146 | dev_printk_index_wrap(_dev_warn, KERN_WARNING, dev, dev_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~
include/drm/drm_print.h:456:9: note: in expansion of macro 'dev_warn'
456 | dev_##level##type((drm)->dev, "[drm] " fmt, ##__VA_ARGS__)
| ^~~~
include/drm/drm_print.h:466:9: note: in expansion of macro '__drm_printk'
466 | __drm_printk((drm), warn,, fmt, ##__VA_ARGS__)
| ^~~~~~~~~~~~
drivers/gpu/drm/xe/xe_mmio.c:226:17: note: in expansion of macro 'drm_warn'
226 | drm_warn(&xe->drm, "Restricting VRAM size to PCI resource size (0x%llx->0x%llx)\n",
| ^~~~~~~~
cc1: some warnings being treated as errors
--
In file included from include/trace/define_trace.h:102,
from drivers/gpu/drm/xe/xe_trace.h:512,
from drivers/gpu/drm/xe/xe_trace.c:8:
include/trace/../../drivers/gpu/drm/xe/xe_trace.h: In function 'trace_raw_output_xe_bo':
include/trace/../../drivers/gpu/drm/xe/xe_trace.h:38:31: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
38 | TP_printk("size=%ld, flags=0x%02x, vm=0x%016llx",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/trace/trace_events.h:203:34: note: in definition of macro 'DECLARE_EVENT_CLASS'
203 | trace_event_printf(iter, print); \
| ^~~~~
include/trace/../../drivers/gpu/drm/xe/xe_trace.h:38:21: note: in expansion of macro 'TP_printk'
38 | TP_printk("size=%ld, flags=0x%02x, vm=0x%016llx",
| ^~~~~~~~~
In file included from include/trace/trace_events.h:237:
include/trace/../../drivers/gpu/drm/xe/xe_trace.h:38:39: note: format string is defined here
38 | TP_printk("size=%ld, flags=0x%02x, vm=0x%016llx",
| ~~^
| |
| long int
| %d
include/trace/../../drivers/gpu/drm/xe/xe_trace.h: In function 'trace_event_raw_event_xe_bo':
>> include/trace/../../drivers/gpu/drm/xe/xe_trace.h:35:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
35 | __entry->vm = (u64)bo->vm;
| ^
include/trace/trace_events.h:402:11: note: in definition of macro 'DECLARE_EVENT_CLASS'
402 | { assign; } \
| ^~~~~~
include/trace/../../drivers/gpu/drm/xe/xe_trace.h:32:21: note: in expansion of macro 'TP_fast_assign'
32 | TP_fast_assign(
| ^~~~~~~~~~~~~~
include/trace/../../drivers/gpu/drm/xe/xe_trace.h: In function 'trace_event_raw_event_xe_sched_job':
include/trace/../../drivers/gpu/drm/xe/xe_trace.h:188:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
188 | __entry->fence = (u64)job->fence;
| ^
include/trace/trace_events.h:402:11: note: in definition of macro 'DECLARE_EVENT_CLASS'
402 | { assign; } \
| ^~~~~~
include/trace/../../drivers/gpu/drm/xe/xe_trace.h:181:21: note: in expansion of macro 'TP_fast_assign'
181 | TP_fast_assign(
| ^~~~~~~~~~~~~~
include/trace/../../drivers/gpu/drm/xe/xe_trace.h: In function 'trace_event_raw_event_xe_hw_fence':
include/trace/../../drivers/gpu/drm/xe/xe_trace.h:275:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
275 | __entry->fence = (u64)fence;
| ^
include/trace/trace_events.h:402:11: note: in definition of macro 'DECLARE_EVENT_CLASS'
402 | { assign; } \
| ^~~~~~
include/trace/../../drivers/gpu/drm/xe/xe_trace.h:272:21: note: in expansion of macro 'TP_fast_assign'
272 | TP_fast_assign(
| ^~~~~~~~~~~~~~
include/trace/../../drivers/gpu/drm/xe/xe_trace.h: In function 'trace_event_raw_event_xe_vma':
include/trace/../../drivers/gpu/drm/xe/xe_trace.h:315:43: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
315 | __entry->vma = (u64)vma;
| ^
include/trace/trace_events.h:402:11: note: in definition of macro 'DECLARE_EVENT_CLASS'
402 | { assign; } \
| ^~~~~~
include/trace/../../drivers/gpu/drm/xe/xe_trace.h:314:21: note: in expansion of macro 'TP_fast_assign'
314 | TP_fast_assign(
| ^~~~~~~~~~~~~~
include/trace/../../drivers/gpu/drm/xe/xe_trace.h: In function 'trace_event_raw_event_xe_vm':
include/trace/../../drivers/gpu/drm/xe/xe_trace.h:412:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
412 | __entry->vm = (u64)vm;
| ^
include/trace/trace_events.h:402:11: note: in definition of macro 'DECLARE_EVENT_CLASS'
402 | { assign; } \
| ^~~~~~
include/trace/../../drivers/gpu/drm/xe/xe_trace.h:411:21: note: in expansion of macro 'TP_fast_assign'
411 | TP_fast_assign(
| ^~~~~~~~~~~~~~
vim +35 include/trace/../../drivers/gpu/drm/xe/xe_trace.h
21
22 DECLARE_EVENT_CLASS(xe_bo,
23 TP_PROTO(struct xe_bo *bo),
24 TP_ARGS(bo),
25
26 TP_STRUCT__entry(
27 __field(size_t, size)
28 __field(u32, flags)
29 __field(u64, vm)
30 ),
31
32 TP_fast_assign(
33 __entry->size = bo->size;
34 __entry->flags = bo->flags;
> 35 __entry->vm = (u64)bo->vm;
36 ),
37
38 TP_printk("size=%ld, flags=0x%02x, vm=0x%016llx",
39 __entry->size, __entry->flags, __entry->vm)
40 );
41
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the Intel-xe
mailing list