[gvt-linux:topic/gvt-xengt 25/45] drivers/gpu/drm/i915/i915_reg.h:185:46: error: initialization makes integer from pointer without a cast
kbuild test robot
lkp at intel.com
Thu Jun 13 07:59:18 UTC 2019
tree: https://github.com/intel/gvt-linux.git topic/gvt-xengt
head: 6eb340a52bed9564d185e34fd4e63821190ce1f9
commit: 70be43404587e364d895cbf4b52c3dd4b2605eed [25/45] drm/i915/gvt: Implement vGPU status save and restore through new VFIO subregion VFIO_REGION_SUBTYPE_DEVICE_STATE
config: x86_64-randconfig-u0-06131245 (attached as .config)
compiler: gcc-5 (Debian 5.5.0-3) 5.4.1 20171010
reproduce:
git checkout 70be43404587e364d895cbf4b52c3dd4b2605eed
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp at intel.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/i915/gvt/migrate.c: In function 'sreg_save':
drivers/gpu/drm/i915/gvt/migrate.c:291:24: error: 'struct intel_vgpu_mmio' has no member named 'sreg'
void *src = vgpu->mmio.sreg;
^
drivers/gpu/drm/i915/gvt/migrate.c: In function 'sreg_load':
drivers/gpu/drm/i915/gvt/migrate.c:306:25: error: 'struct intel_vgpu_mmio' has no member named 'sreg'
void *dest = vgpu->mmio.sreg;
^
In file included from drivers/gpu/drm/i915/i915_drv.h:63:0,
from drivers/gpu/drm/i915/gvt/migrate.c:28:
drivers/gpu/drm/i915/gvt/migrate.c: In function 'workload_load':
>> drivers/gpu/drm/i915/i915_reg.h:185:46: error: initialization makes integer from pointer without a cast [-Werror=int-conversion]
#define _MMIO(r) ((const i915_reg_t){ .reg = (r) })
^
drivers/gpu/drm/i915/gt/intel_lrc.h:38:28: note: in expansion of macro '_MMIO'
#define RING_ELSP(base) _MMIO((base) + 0x230)
^
drivers/gpu/drm/i915/gvt/migrate.c:490:30: note: in expansion of macro 'RING_ELSP'
off = i915_mmio_reg_offset(RING_ELSP(engine));
^
drivers/gpu/drm/i915/i915_reg.h:185:46: note: (near initialization for '(anonymous).reg')
#define _MMIO(r) ((const i915_reg_t){ .reg = (r) })
^
drivers/gpu/drm/i915/gt/intel_lrc.h:38:28: note: in expansion of macro '_MMIO'
#define RING_ELSP(base) _MMIO((base) + 0x230)
^
drivers/gpu/drm/i915/gvt/migrate.c:490:30: note: in expansion of macro 'RING_ELSP'
off = i915_mmio_reg_offset(RING_ELSP(engine));
^
cc1: all warnings being treated as errors
vim +185 drivers/gpu/drm/i915/i915_reg.h
f0f59a00 Ville Syrjälä 2015-11-18 184
f0f59a00 Ville Syrjälä 2015-11-18 @185 #define _MMIO(r) ((const i915_reg_t){ .reg = (r) })
f0f59a00 Ville Syrjälä 2015-11-18 186
:::::: The code at line 185 was first introduced by commit
:::::: f0f59a00a1c9be11038bef5aa735ed7dd985f9cf drm/i915: Type safe register read/write
:::::: TO: Ville Syrjälä <ville.syrjala at linux.intel.com>
:::::: CC: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
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: 32082 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gvt-dev/attachments/20190613/a513315a/attachment-0001.gz>
More information about the intel-gvt-dev
mailing list