[intel-gvt-linux:topic/gvt-xengt 35/43] drivers/gpu/drm/i915/gvt/xengt.c:1837:24: error: initialization from incompatible pointer type
kbuild test robot
lkp at intel.com
Wed Jul 11 11:10:35 UTC 2018
tree: https://github.com/intel/gvt-linux topic/gvt-xengt
head: 54acef46af0ae520ee8362b1c73686c2d867a159
commit: 8ba9583f9297eb9e52799b132d4344782e98c2f7 [35/43] drm/i915/gvt/xengt: Impliment mpt->dma_map/unmap_guest_page
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
git checkout 8ba9583f9297eb9e52799b132d4344782e98c2f7
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
drivers/gpu/drm/i915/gvt/xengt.c:60:16: sparse: symbol 'gvt_ctrl_kobj' was not declared. Should it be static?
drivers/gpu/drm/i915/gvt/xengt.c:64:21: sparse: symbol 'xengt_priv' was not declared. Should it be static?
drivers/gpu/drm/i915/gvt/xengt.c:117:24: sparse: symbol 'xengt_kobj_sysfs_ops' was not declared. Should it be static?
drivers/gpu/drm/i915/gvt/xengt.c:431:5: sparse: symbol 'xengt_sysfs_init' was not declared. Should it be static?
drivers/gpu/drm/i915/gvt/xengt.c:470:6: sparse: symbol 'xengt_sysfs_del' was not declared. Should it be static?
drivers/gpu/drm/i915/gvt/xengt.c:596:38: sparse: expression using sizeof(void)
drivers/gpu/drm/i915/gvt/xengt.c:596:38: sparse: expression using sizeof(void)
drivers/gpu/drm/i915/gvt/xengt.c:1837:31: sparse: incorrect type in initializer (incompatible argument 3 (different base types))
drivers/gpu/drm/i915/gvt/xengt.c:1837:31: expected int ( *dma_map_guest_page )( ... )
drivers/gpu/drm/i915/gvt/xengt.c:1837:31: got int ( *<noident> )( ... )
>> drivers/gpu/drm/i915/gvt/xengt.c:1837:24: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.dma_map_guest_page = xengt_dma_map_guest_page,
^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/gvt/xengt.c:1837:24: note: (near initialization for 'xengt_mpt.dma_map_guest_page')
cc1: some warnings being treated as errors
sparse warnings: (new ones prefixed by >>)
drivers/gpu/drm/i915/gvt/xengt.c:60:16: sparse: symbol 'gvt_ctrl_kobj' was not declared. Should it be static?
drivers/gpu/drm/i915/gvt/xengt.c:64:21: sparse: symbol 'xengt_priv' was not declared. Should it be static?
drivers/gpu/drm/i915/gvt/xengt.c:117:24: sparse: symbol 'xengt_kobj_sysfs_ops' was not declared. Should it be static?
drivers/gpu/drm/i915/gvt/xengt.c:431:5: sparse: symbol 'xengt_sysfs_init' was not declared. Should it be static?
drivers/gpu/drm/i915/gvt/xengt.c:470:6: sparse: symbol 'xengt_sysfs_del' was not declared. Should it be static?
drivers/gpu/drm/i915/gvt/xengt.c:596:38: sparse: expression using sizeof(void)
drivers/gpu/drm/i915/gvt/xengt.c:596:38: sparse: expression using sizeof(void)
>> drivers/gpu/drm/i915/gvt/xengt.c:1837:31: sparse: incorrect type in initializer (incompatible argument 3 (different base types)) @@ expected int ( *dma_map_guest_page )( ... ) @@ got int ( *dma_map_guest_page )( ... ) @@
drivers/gpu/drm/i915/gvt/xengt.c:1837:31: expected int ( *dma_map_guest_page )( ... )
drivers/gpu/drm/i915/gvt/xengt.c:1837:31: got int ( *<noident> )( ... )
drivers/gpu/drm/i915/gvt/xengt.c:1837:24: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.dma_map_guest_page = xengt_dma_map_guest_page,
^~~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/i915/gvt/xengt.c:1837:24: note: (near initialization for 'xengt_mpt.dma_map_guest_page')
cc1: some warnings being treated as errors
vim +1837 drivers/gpu/drm/i915/gvt/xengt.c
1823
1824 struct intel_gvt_mpt xengt_mpt = {
1825 //.detect_host = xengt_detect_host,
1826 .host_init = xengt_host_init,
1827 .host_exit = xengt_host_exit,
1828 .attach_vgpu = xengt_attach_vgpu,
1829 .detach_vgpu = xengt_detach_vgpu,
1830 .inject_msi = xengt_inject_msi,
1831 .from_virt_to_mfn = xengt_virt_to_mfn,
1832 .enable_page_track = xengt_page_track_add,
1833 .disable_page_track = xengt_page_track_remove,
1834 .read_gpa = xengt_read_gpa,
1835 .write_gpa = xengt_write_gpa,
1836 .gfn_to_mfn = xengt_gfn_to_pfn,
> 1837 .dma_map_guest_page = xengt_dma_map_guest_page,
1838 .dma_unmap_guest_page = xengt_dma_unmap_guest_page,
1839 .map_gfn_to_mfn = xengt_map_gfn_to_mfn,
1840 .set_trap_area = xengt_set_trap_area,
1841 };
1842 EXPORT_SYMBOL_GPL(xengt_mpt);
1843
---
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: 64689 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gvt-dev/attachments/20180711/dd9c3a0c/attachment-0001.gz>
More information about the intel-gvt-dev
mailing list