[intel-gvt-linux:topic/gvt-xengt 38/41] drivers/gpu/drm/i915/gvt/migrate.c:539:3: note: in expansion of macro 'MIG_VREG_RESTORE'

kbuild test robot lkp at intel.com
Mon Jul 22 13:51:04 UTC 2019


tree:   https://github.com/intel/gvt-linux topic/gvt-xengt
head:   91f813747858ede8f67aa95236a5bf5822c3873d
commit: 644be19dc21f88385df94425340c699f07635fb8 [38/41] drm/i915/gvt: Emulate ring mode register restore for migration
config: x86_64-rhel-7.6 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-10) 7.4.0
reproduce:
        git checkout 644be19dc21f88385df94425340c699f07635fb8
        # 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 warnings (new ones prefixed by >>):

   drivers/gpu/drm/i915/gvt/migrate.c: In function 'sreg_save':
   drivers/gpu/drm/i915/gvt/migrate.c:356:25: error: 'struct intel_vgpu_mmio' has no member named 'sreg'; did you mean 'vreg'?
     void *src = vgpu->mmio.sreg;
                            ^~~~
                            vreg
   drivers/gpu/drm/i915/gvt/migrate.c: In function 'sreg_load':
   drivers/gpu/drm/i915/gvt/migrate.c:371:26: error: 'struct intel_vgpu_mmio' has no member named 'sreg'; did you mean 'vreg'?
     void *dest = vgpu->mmio.sreg;
                             ^~~~
                             vreg
   In file included from drivers/gpu/drm/i915/gvt/migrate.c:29:0:
   drivers/gpu/drm/i915/gvt/migrate.c: In function 'vreg_load':
   drivers/gpu/drm/i915/i915_reg.h:185:46: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
    #define _MMIO(r) ((const i915_reg_t){ .reg = (r) })
                                                 ^
   drivers/gpu/drm/i915/gvt/gvt.h:460:31: note: in definition of macro 'vgpu_vreg'
     (*(u32 *)(vgpu->mmio.vreg + (offset)))
                                  ^~~~~~
>> drivers/gpu/drm/i915/gvt/migrate.c:539:3: note: in expansion of macro 'MIG_VREG_RESTORE'
      MIG_VREG_RESTORE(vgpu, i915_mmio_reg_offset(RING_MODE_GEN7(engine)));
      ^~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/i915_reg.h:2728:30: note: in expansion of macro '_MMIO'
    #define RING_MODE_GEN7(base) _MMIO((base) + 0x29c)
                                 ^~~~~
>> drivers/gpu/drm/i915/gvt/migrate.c:539:47: note: in expansion of macro 'RING_MODE_GEN7'
      MIG_VREG_RESTORE(vgpu, i915_mmio_reg_offset(RING_MODE_GEN7(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/gvt/gvt.h:460:31: note: in definition of macro 'vgpu_vreg'
     (*(u32 *)(vgpu->mmio.vreg + (offset)))
                                  ^~~~~~
>> drivers/gpu/drm/i915/gvt/migrate.c:539:3: note: in expansion of macro 'MIG_VREG_RESTORE'
      MIG_VREG_RESTORE(vgpu, i915_mmio_reg_offset(RING_MODE_GEN7(engine)));
      ^~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/i915_reg.h:2728:30: note: in expansion of macro '_MMIO'
    #define RING_MODE_GEN7(base) _MMIO((base) + 0x29c)
                                 ^~~~~
>> drivers/gpu/drm/i915/gvt/migrate.c:539:47: note: in expansion of macro 'RING_MODE_GEN7'
      MIG_VREG_RESTORE(vgpu, i915_mmio_reg_offset(RING_MODE_GEN7(engine)));
                                                  ^~~~~~~~~~~~~~
   drivers/gpu/drm/i915/i915_reg.h:185:46: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
    #define _MMIO(r) ((const i915_reg_t){ .reg = (r) })
                                                 ^
   drivers/gpu/drm/i915/gvt/migrate.c:39:48: note: in definition of macro 'MIG_VREG_RESTORE'
      u64 pa = intel_vgpu_mmio_offset_to_gpa(vgpu, off); \
                                                   ^~~
>> drivers/gpu/drm/i915/i915_reg.h:2728:30: note: in expansion of macro '_MMIO'
    #define RING_MODE_GEN7(base) _MMIO((base) + 0x29c)
                                 ^~~~~
>> drivers/gpu/drm/i915/gvt/migrate.c:539:47: note: in expansion of macro 'RING_MODE_GEN7'
      MIG_VREG_RESTORE(vgpu, i915_mmio_reg_offset(RING_MODE_GEN7(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/gvt/migrate.c:39:48: note: in definition of macro 'MIG_VREG_RESTORE'
      u64 pa = intel_vgpu_mmio_offset_to_gpa(vgpu, off); \
                                                   ^~~
>> drivers/gpu/drm/i915/i915_reg.h:2728:30: note: in expansion of macro '_MMIO'
    #define RING_MODE_GEN7(base) _MMIO((base) + 0x29c)
                                 ^~~~~
>> drivers/gpu/drm/i915/gvt/migrate.c:539:47: note: in expansion of macro 'RING_MODE_GEN7'
      MIG_VREG_RESTORE(vgpu, i915_mmio_reg_offset(RING_MODE_GEN7(engine)));
                                                  ^~~~~~~~~~~~~~

vim +/MIG_VREG_RESTORE +539 drivers/gpu/drm/i915/gvt/migrate.c

---
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: 47562 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gvt-dev/attachments/20190722/fc870bc1/attachment-0001.gz>


More information about the intel-gvt-dev mailing list