[intel-gvt-linux:topic/gvt-xengt 9/45] drivers/gpu/drm/i915/gvt/xengt.c:1457:17: error: initialization of 'void (*)(void *)' from incompatible pointer type 'void (*)(long unsigned int)'
kbuild test robot
lkp at intel.com
Fri Feb 22 14:56:29 UTC 2019
tree: https://github.com/intel/gvt-linux topic/gvt-xengt
head: 51807e294b7edf551b6976005440312974581311
commit: 828a102f730dacf2bf4cf4ee3f233daa1544d4ca [9/45] drm/i915/xengt: xengt moudule initial files
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-8 (Debian 8.2.0-20) 8.2.0
reproduce:
git checkout 828a102f730dacf2bf4cf4ee3f233daa1544d4ca
# save the attached .config to linux build tree
make ARCH=x86_64
All error/warnings (new ones prefixed by >>):
>> drivers/gpu/drm/i915/gvt/xengt.c:59:16: sparse: warning: symbol 'gvt_ctrl_kobj' was not declared. Should it be static?
>> drivers/gpu/drm/i915/gvt/xengt.c:63:21: sparse: warning: symbol 'xengt_priv' was not declared. Should it be static?
>> drivers/gpu/drm/i915/gvt/xengt.c:112:24: sparse: warning: symbol 'xengt_kobj_sysfs_ops' was not declared. Should it be static?
>> drivers/gpu/drm/i915/gvt/xengt.c:274:5: sparse: warning: symbol 'xengt_sysfs_init' was not declared. Should it be static?
>> drivers/gpu/drm/i915/gvt/xengt.c:313:6: sparse: warning: symbol 'xengt_sysfs_del' was not declared. Should it be static?
>> drivers/gpu/drm/i915/gvt/xengt.c:1457:24: sparse: warning: incorrect type in initializer (incompatible argument 1 (different base types))
drivers/gpu/drm/i915/gvt/xengt.c:1457:24: sparse: expected void ( *detach_vgpu )( ... )
drivers/gpu/drm/i915/gvt/xengt.c:1457:24: sparse: got void ( * )( ... )
--
>> drivers/gpu/drm/i915/gvt/xengt.c:1457:17: error: initialization of 'void (*)(void *)' from incompatible pointer type 'void (*)(long unsigned int)' [-Werror=incompatible-pointer-types]
.detach_vgpu = xengt_detach_vgpu,
^~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/gvt/xengt.c:1457:17: note: (near initialization for 'xengt_mpt.detach_vgpu')
cc1: some warnings being treated as errors
sparse warnings: (new ones prefixed by >>)
drivers/gpu/drm/i915/gvt/xengt.c:59:16: sparse: warning: symbol 'gvt_ctrl_kobj' was not declared. Should it be static?
drivers/gpu/drm/i915/gvt/xengt.c:63:21: sparse: warning: symbol 'xengt_priv' was not declared. Should it be static?
drivers/gpu/drm/i915/gvt/xengt.c:112:24: sparse: warning: symbol 'xengt_kobj_sysfs_ops' was not declared. Should it be static?
drivers/gpu/drm/i915/gvt/xengt.c:274:5: sparse: warning: symbol 'xengt_sysfs_init' was not declared. Should it be static?
drivers/gpu/drm/i915/gvt/xengt.c:313:6: sparse: warning: symbol 'xengt_sysfs_del' was not declared. Should it be static?
drivers/gpu/drm/i915/gvt/xengt.c:1457:24: sparse: warning: incorrect type in initializer (incompatible argument 1 (different base types))
>> drivers/gpu/drm/i915/gvt/xengt.c:1457:24: sparse: expected void ( *detach_vgpu )( ... )
>> drivers/gpu/drm/i915/gvt/xengt.c:1457:24: sparse: got void ( * )( ... )
vim +1457 drivers/gpu/drm/i915/gvt/xengt.c
1450
1451 static struct intel_gvt_mpt xengt_mpt = {
1452 //.detect_host = xengt_detect_host,
1453 .type = INTEL_GVT_HYPERVISOR_XEN,
1454 .host_init = xengt_host_init,
1455 .host_exit = xengt_host_exit,
1456 .attach_vgpu = xengt_attach_vgpu,
> 1457 .detach_vgpu = xengt_detach_vgpu,
1458 .inject_msi = xengt_inject_msi,
1459 .from_virt_to_mfn = xengt_virt_to_mfn,
1460 .enable_page_track = xengt_page_track_add,
1461 .disable_page_track = xengt_page_track_remove,
1462 .read_gpa = xengt_read_gpa,
1463 .write_gpa = xengt_write_gpa,
1464 .gfn_to_mfn = xengt_gfn_to_pfn,
1465 .map_gfn_to_mfn = xengt_map_gfn_to_mfn,
1466 .set_trap_area = xengt_set_trap_area,
1467 };
1468
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 67392 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gvt-dev/attachments/20190222/3c88d735/attachment-0001.gz>
More information about the intel-gvt-dev
mailing list