[intel-gvt-linux:topic/gvt-xengt 23/34] drivers/gpu/drm/i915/gvt/gvt.h:434:28: error: invalid operands to binary + (have 'void *' and 'i915_reg_t {aka const struct <anonymous>}')

kbuild test robot fengguang.wu at intel.com
Wed Jan 3 12:01:54 UTC 2018


tree:   https://github.com/intel/gvt-linux topic/gvt-xengt
head:   7ee806d3f2a2625e5e76d532600e2a3ba9bb0a0f
commit: 94183ab5309c168282fcf79efb2827dd49e9e028 [23/34] drm/i915/gvt: Retrieve the guest gm base address from PVINFO
config: x86_64-randconfig-b0-01031600 (attached as .config)
compiler: gcc-7 (Debian 7.2.0-12) 7.2.1 20171025
reproduce:
        git checkout 94183ab5309c168282fcf79efb2827dd49e9e028
        # save the attached .config to linux build tree
        make ARCH=x86_64 

Note: the intel-gvt-linux/topic/gvt-xengt HEAD 7ee806d3f2a2625e5e76d532600e2a3ba9bb0a0f builds fine.
      It only hurts bisectibility.

All error/warnings (new ones prefixed by >>):

   In file included from include/asm-generic/bug.h:5:0,
                    from arch/x86/include/asm/bug.h:82,
                    from include/linux/bug.h:5,
                    from include/linux/mmdebug.h:5,
                    from include/linux/gfp.h:5,
                    from include/linux/slab.h:15,
                    from include/linux/io-mapping.h:22,
                    from drivers/gpu/drm/i915/i915_drv.h:36,
                    from drivers/gpu/drm/i915/gvt/gtt.c:37:
   drivers/gpu/drm/i915/gvt/gtt.c: In function 'intel_gvt_ggtt_validate_range':
>> drivers/gpu/drm/i915/gvt/gvt.h:434:28: error: invalid operands to binary + (have 'void *' and 'i915_reg_t {aka const struct <anonymous>}')
     (*(u32 *)(vgpu->mmio.vreg + (offset)))
                               ^
   include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> drivers/gpu/drm/i915/gvt/gtt.c:51:2: note: in expansion of macro 'if'
     if ((!vgpu_gmadr_is_valid(vgpu, addr)) || (size
     ^~
   drivers/gpu/drm/i915/gvt/gvt.h:398:2: note: in expansion of macro 'vgpu_vreg'
     vgpu_vreg(vgpu, vgtif_reg(avail_rs.mappable_gmadr.base))
     ^~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:402:47: note: in expansion of macro 'vgpu_guest_aperture_offset'
    #define vgpu_guest_aperture_gmadr_base(vgpu) (vgpu_guest_aperture_offset(vgpu))
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:484:13: note: in expansion of macro 'vgpu_guest_aperture_gmadr_base'
     ((gmadr >= vgpu_guest_aperture_gmadr_base(vgpu)) && \
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:492:5: note: in expansion of macro 'vgpu_gmadr_is_aperture'
      ((vgpu_gmadr_is_aperture(vgpu, gmadr) || \
        ^~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gtt.c:51:8: note: in expansion of macro 'vgpu_gmadr_is_valid'
     if ((!vgpu_gmadr_is_valid(vgpu, addr)) || (size
           ^~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/gvt/gvt.h:434:28: error: invalid operands to binary + (have 'void *' and 'i915_reg_t {aka const struct <anonymous>}')
     (*(u32 *)(vgpu->mmio.vreg + (offset)))
                               ^
   include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> drivers/gpu/drm/i915/gvt/gtt.c:51:2: note: in expansion of macro 'if'
     if ((!vgpu_gmadr_is_valid(vgpu, addr)) || (size
     ^~
   drivers/gpu/drm/i915/gvt/gvt.h:398:2: note: in expansion of macro 'vgpu_vreg'
     vgpu_vreg(vgpu, vgtif_reg(avail_rs.mappable_gmadr.base))
     ^~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:402:47: note: in expansion of macro 'vgpu_guest_aperture_offset'
    #define vgpu_guest_aperture_gmadr_base(vgpu) (vgpu_guest_aperture_offset(vgpu))
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:404:3: note: in expansion of macro 'vgpu_guest_aperture_gmadr_base'
     (vgpu_guest_aperture_gmadr_base(vgpu) + vgpu_aperture_sz(vgpu) - 1)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:485:13: note: in expansion of macro 'vgpu_guest_aperture_gmadr_end'
      (gmadr <= vgpu_guest_aperture_gmadr_end(vgpu)))
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:492:5: note: in expansion of macro 'vgpu_gmadr_is_aperture'
      ((vgpu_gmadr_is_aperture(vgpu, gmadr) || \
        ^~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gtt.c:51:8: note: in expansion of macro 'vgpu_gmadr_is_valid'
     if ((!vgpu_gmadr_is_valid(vgpu, addr)) || (size
           ^~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/gvt/gvt.h:434:28: error: invalid operands to binary + (have 'void *' and 'i915_reg_t {aka const struct <anonymous>}')
     (*(u32 *)(vgpu->mmio.vreg + (offset)))
                               ^
   include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> drivers/gpu/drm/i915/gvt/gtt.c:51:2: note: in expansion of macro 'if'
     if ((!vgpu_gmadr_is_valid(vgpu, addr)) || (size
     ^~
   drivers/gpu/drm/i915/gvt/gvt.h:400:2: note: in expansion of macro 'vgpu_vreg'
     vgpu_vreg(vgpu, vgtif_reg(avail_rs.nonmappable_gmadr.base))
     ^~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:406:45: note: in expansion of macro 'vgpu_guest_hidden_offset'
    #define vgpu_guest_hidden_gmadr_base(vgpu) (vgpu_guest_hidden_offset(vgpu))
                                                ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:488:13: note: in expansion of macro 'vgpu_guest_hidden_gmadr_base'
     ((gmadr >= vgpu_guest_hidden_gmadr_base(vgpu)) && \
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:493:5: note: in expansion of macro 'vgpu_gmadr_is_hidden'
       (vgpu_gmadr_is_hidden(vgpu, gmadr))))
        ^~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gtt.c:51:8: note: in expansion of macro 'vgpu_gmadr_is_valid'
     if ((!vgpu_gmadr_is_valid(vgpu, addr)) || (size
           ^~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/gvt/gvt.h:434:28: error: invalid operands to binary + (have 'void *' and 'i915_reg_t {aka const struct <anonymous>}')
     (*(u32 *)(vgpu->mmio.vreg + (offset)))
                               ^
   include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> drivers/gpu/drm/i915/gvt/gtt.c:51:2: note: in expansion of macro 'if'
     if ((!vgpu_gmadr_is_valid(vgpu, addr)) || (size
     ^~
   drivers/gpu/drm/i915/gvt/gvt.h:400:2: note: in expansion of macro 'vgpu_vreg'
     vgpu_vreg(vgpu, vgtif_reg(avail_rs.nonmappable_gmadr.base))
     ^~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:406:45: note: in expansion of macro 'vgpu_guest_hidden_offset'
    #define vgpu_guest_hidden_gmadr_base(vgpu) (vgpu_guest_hidden_offset(vgpu))
                                                ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:408:3: note: in expansion of macro 'vgpu_guest_hidden_gmadr_base'
     (vgpu_guest_hidden_gmadr_base(vgpu) + vgpu_hidden_sz(vgpu) - 1)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:489:13: note: in expansion of macro 'vgpu_guest_hidden_gmadr_end'
      (gmadr <= vgpu_guest_hidden_gmadr_end(vgpu)))
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:493:5: note: in expansion of macro 'vgpu_gmadr_is_hidden'
       (vgpu_gmadr_is_hidden(vgpu, gmadr))))
        ^~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gtt.c:51:8: note: in expansion of macro 'vgpu_gmadr_is_valid'
     if ((!vgpu_gmadr_is_valid(vgpu, addr)) || (size
           ^~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/gvt/gvt.h:434:28: error: invalid operands to binary + (have 'void *' and 'i915_reg_t {aka const struct <anonymous>}')
     (*(u32 *)(vgpu->mmio.vreg + (offset)))
                               ^
   include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> drivers/gpu/drm/i915/gvt/gtt.c:51:2: note: in expansion of macro 'if'
     if ((!vgpu_gmadr_is_valid(vgpu, addr)) || (size
     ^~
   drivers/gpu/drm/i915/gvt/gvt.h:398:2: note: in expansion of macro 'vgpu_vreg'
     vgpu_vreg(vgpu, vgtif_reg(avail_rs.mappable_gmadr.base))
     ^~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:402:47: note: in expansion of macro 'vgpu_guest_aperture_offset'
    #define vgpu_guest_aperture_gmadr_base(vgpu) (vgpu_guest_aperture_offset(vgpu))
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:484:13: note: in expansion of macro 'vgpu_guest_aperture_gmadr_base'
     ((gmadr >= vgpu_guest_aperture_gmadr_base(vgpu)) && \
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:492:5: note: in expansion of macro 'vgpu_gmadr_is_aperture'
      ((vgpu_gmadr_is_aperture(vgpu, gmadr) || \
        ^~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gtt.c:52:8: note: in expansion of macro 'vgpu_gmadr_is_valid'
       && !vgpu_gmadr_is_valid(vgpu, addr + size - 1))) {
           ^~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/gvt/gvt.h:434:28: error: invalid operands to binary + (have 'void *' and 'i915_reg_t {aka const struct <anonymous>}')
     (*(u32 *)(vgpu->mmio.vreg + (offset)))
                               ^
   include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> drivers/gpu/drm/i915/gvt/gtt.c:51:2: note: in expansion of macro 'if'
     if ((!vgpu_gmadr_is_valid(vgpu, addr)) || (size
     ^~
   drivers/gpu/drm/i915/gvt/gvt.h:398:2: note: in expansion of macro 'vgpu_vreg'
     vgpu_vreg(vgpu, vgtif_reg(avail_rs.mappable_gmadr.base))
     ^~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:402:47: note: in expansion of macro 'vgpu_guest_aperture_offset'
    #define vgpu_guest_aperture_gmadr_base(vgpu) (vgpu_guest_aperture_offset(vgpu))
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:404:3: note: in expansion of macro 'vgpu_guest_aperture_gmadr_base'
     (vgpu_guest_aperture_gmadr_base(vgpu) + vgpu_aperture_sz(vgpu) - 1)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:485:13: note: in expansion of macro 'vgpu_guest_aperture_gmadr_end'
      (gmadr <= vgpu_guest_aperture_gmadr_end(vgpu)))
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:492:5: note: in expansion of macro 'vgpu_gmadr_is_aperture'
      ((vgpu_gmadr_is_aperture(vgpu, gmadr) || \
        ^~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gtt.c:52:8: note: in expansion of macro 'vgpu_gmadr_is_valid'
       && !vgpu_gmadr_is_valid(vgpu, addr + size - 1))) {
           ^~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/gvt/gvt.h:434:28: error: invalid operands to binary + (have 'void *' and 'i915_reg_t {aka const struct <anonymous>}')
     (*(u32 *)(vgpu->mmio.vreg + (offset)))
                               ^
   include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> drivers/gpu/drm/i915/gvt/gtt.c:51:2: note: in expansion of macro 'if'
     if ((!vgpu_gmadr_is_valid(vgpu, addr)) || (size
     ^~
   drivers/gpu/drm/i915/gvt/gvt.h:400:2: note: in expansion of macro 'vgpu_vreg'
     vgpu_vreg(vgpu, vgtif_reg(avail_rs.nonmappable_gmadr.base))
     ^~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:406:45: note: in expansion of macro 'vgpu_guest_hidden_offset'
    #define vgpu_guest_hidden_gmadr_base(vgpu) (vgpu_guest_hidden_offset(vgpu))
                                                ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:488:13: note: in expansion of macro 'vgpu_guest_hidden_gmadr_base'
     ((gmadr >= vgpu_guest_hidden_gmadr_base(vgpu)) && \
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:493:5: note: in expansion of macro 'vgpu_gmadr_is_hidden'
       (vgpu_gmadr_is_hidden(vgpu, gmadr))))
        ^~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gtt.c:52:8: note: in expansion of macro 'vgpu_gmadr_is_valid'
       && !vgpu_gmadr_is_valid(vgpu, addr + size - 1))) {
           ^~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/gvt/gvt.h:434:28: error: invalid operands to binary + (have 'void *' and 'i915_reg_t {aka const struct <anonymous>}')
     (*(u32 *)(vgpu->mmio.vreg + (offset)))
                               ^
   include/linux/compiler.h:58:30: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                 ^~~~
>> drivers/gpu/drm/i915/gvt/gtt.c:51:2: note: in expansion of macro 'if'
     if ((!vgpu_gmadr_is_valid(vgpu, addr)) || (size
     ^~
   drivers/gpu/drm/i915/gvt/gvt.h:400:2: note: in expansion of macro 'vgpu_vreg'
     vgpu_vreg(vgpu, vgtif_reg(avail_rs.nonmappable_gmadr.base))
     ^~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:406:45: note: in expansion of macro 'vgpu_guest_hidden_offset'
    #define vgpu_guest_hidden_gmadr_base(vgpu) (vgpu_guest_hidden_offset(vgpu))
                                                ^~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:408:3: note: in expansion of macro 'vgpu_guest_hidden_gmadr_base'
     (vgpu_guest_hidden_gmadr_base(vgpu) + vgpu_hidden_sz(vgpu) - 1)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:489:13: note: in expansion of macro 'vgpu_guest_hidden_gmadr_end'
      (gmadr <= vgpu_guest_hidden_gmadr_end(vgpu)))
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:493:5: note: in expansion of macro 'vgpu_gmadr_is_hidden'
       (vgpu_gmadr_is_hidden(vgpu, gmadr))))
        ^~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gtt.c:52:8: note: in expansion of macro 'vgpu_gmadr_is_valid'
       && !vgpu_gmadr_is_valid(vgpu, addr + size - 1))) {
           ^~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/gvt/gvt.h:434:28: error: invalid operands to binary + (have 'void *' and 'i915_reg_t {aka const struct <anonymous>}')
     (*(u32 *)(vgpu->mmio.vreg + (offset)))
                               ^
   include/linux/compiler.h:58:42: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                             ^~~~
>> drivers/gpu/drm/i915/gvt/gtt.c:51:2: note: in expansion of macro 'if'
     if ((!vgpu_gmadr_is_valid(vgpu, addr)) || (size
     ^~
   drivers/gpu/drm/i915/gvt/gvt.h:398:2: note: in expansion of macro 'vgpu_vreg'
     vgpu_vreg(vgpu, vgtif_reg(avail_rs.mappable_gmadr.base))
     ^~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:402:47: note: in expansion of macro 'vgpu_guest_aperture_offset'
    #define vgpu_guest_aperture_gmadr_base(vgpu) (vgpu_guest_aperture_offset(vgpu))
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:484:13: note: in expansion of macro 'vgpu_guest_aperture_gmadr_base'
     ((gmadr >= vgpu_guest_aperture_gmadr_base(vgpu)) && \
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:492:5: note: in expansion of macro 'vgpu_gmadr_is_aperture'
      ((vgpu_gmadr_is_aperture(vgpu, gmadr) || \
        ^~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gtt.c:51:8: note: in expansion of macro 'vgpu_gmadr_is_valid'
     if ((!vgpu_gmadr_is_valid(vgpu, addr)) || (size
           ^~~~~~~~~~~~~~~~~~~
>> drivers/gpu/drm/i915/gvt/gvt.h:434:28: error: invalid operands to binary + (have 'void *' and 'i915_reg_t {aka const struct <anonymous>}')
     (*(u32 *)(vgpu->mmio.vreg + (offset)))
                               ^
   include/linux/compiler.h:58:42: note: in definition of macro '__trace_if'
     if (__builtin_constant_p(!!(cond)) ? !!(cond) :   \
                                             ^~~~
>> drivers/gpu/drm/i915/gvt/gtt.c:51:2: note: in expansion of macro 'if'
     if ((!vgpu_gmadr_is_valid(vgpu, addr)) || (size
     ^~
   drivers/gpu/drm/i915/gvt/gvt.h:398:2: note: in expansion of macro 'vgpu_vreg'
     vgpu_vreg(vgpu, vgtif_reg(avail_rs.mappable_gmadr.base))
     ^~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:402:47: note: in expansion of macro 'vgpu_guest_aperture_offset'
    #define vgpu_guest_aperture_gmadr_base(vgpu) (vgpu_guest_aperture_offset(vgpu))
                                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:404:3: note: in expansion of macro 'vgpu_guest_aperture_gmadr_base'
     (vgpu_guest_aperture_gmadr_base(vgpu) + vgpu_aperture_sz(vgpu) - 1)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:485:13: note: in expansion of macro 'vgpu_guest_aperture_gmadr_end'
      (gmadr <= vgpu_guest_aperture_gmadr_end(vgpu)))
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gvt.h:492:5: note: in expansion of macro 'vgpu_gmadr_is_aperture'
      ((vgpu_gmadr_is_aperture(vgpu, gmadr) || \
        ^~~~~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/i915/gvt/gtt.c:51:8: note: in expansion of macro 'vgpu_gmadr_is_valid'
     if ((!vgpu_gmadr_is_valid(vgpu, addr)) || (size
           ^~~~~~~~~~~~~~~~~~~
--
   In file included from drivers/gpu/drm/i915/gvt/cfg_space.c:35:0:
   drivers/gpu/drm/i915/gvt/cfg_space.c: In function 'map_aperture':
>> drivers/gpu/drm/i915/gvt/gvt.h:434:28: error: invalid operands to binary + (have 'void *' and 'i915_reg_t {aka const struct <anonymous>}')
     (*(u32 *)(vgpu->mmio.vreg + (offset)))
                               ^
   drivers/gpu/drm/i915/gvt/gvt.h:398:2: note: in expansion of macro 'vgpu_vreg'
     vgpu_vreg(vgpu, vgtif_reg(avail_rs.mappable_gmadr.base))
     ^~~~~~~~~
   drivers/gpu/drm/i915/gvt/cfg_space.c:139:21: note: in expansion of macro 'vgpu_guest_aperture_offset'
     first_gfn = (val + vgpu_guest_aperture_offset(vgpu)) >> PAGE_SHIFT;
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from include/asm-generic/bug.h:5:0,
                    from arch/x86/include/asm/bug.h:82,
                    from include/linux/bug.h:5,
                    from include/linux/mmdebug.h:5,
                    from include/linux/gfp.h:5,
                    from include/linux/slab.h:15,
                    from include/linux/io-mapping.h:22,
                    from drivers/gpu/drm/i915/i915_drv.h:36,
                    from drivers/gpu/drm/i915/gvt/cfg_space.c:34:
   drivers/gpu/drm/i915/gvt/cfg_space.c: At top level:
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'strcpy' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^~~~~~~~~~
   include/linux/string.h:425:2: note: in expansion of macro 'if'
     if (p_size == (size_t)-1 && q_size == (size_t)-1)
     ^~
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'kmemdup' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^~~~~~~~~~
   include/linux/string.h:415:2: note: in expansion of macro 'if'
     if (p_size < size)
     ^~
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'kmemdup' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^~~~~~~~~~
   include/linux/string.h:413:2: note: in expansion of macro 'if'
     if (__builtin_constant_p(size) && p_size < size)
     ^~
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memchr_inv' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^~~~~~~~~~
   include/linux/string.h:404:2: note: in expansion of macro 'if'
     if (p_size < size)
     ^~
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memchr_inv' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^~~~~~~~~~
   include/linux/string.h:402:2: note: in expansion of macro 'if'
     if (__builtin_constant_p(size) && p_size < size)
     ^~
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memchr' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^~~~~~~~~~
   include/linux/string.h:393:2: note: in expansion of macro 'if'
     if (p_size < size)
     ^~
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memchr' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^~~~~~~~~~
   include/linux/string.h:391:2: note: in expansion of macro 'if'
     if (__builtin_constant_p(size) && p_size < size)
     ^~
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memcmp' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^~~~~~~~~~
   include/linux/string.h:383:2: note: in expansion of macro 'if'
     if (p_size < size || q_size < size)
     ^~
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memcmp' which is not static
       ______f = {     \
       ^
   include/linux/compiler.h:56:23: note: in expansion of macro '__trace_if'
    #define if(cond, ...) __trace_if( (cond , ## __VA_ARGS__) )
                          ^~~~~~~~~~
   include/linux/string.h:380:3: note: in expansion of macro 'if'
      if (q_size < size)
      ^~
   include/linux/compiler.h:64:4: warning: '______f' is static but declared in inline function 'memcmp' which is not static

vim +434 drivers/gpu/drm/i915/gvt/gvt.h

28a60dee Zhi Wang    2016-09-02  421  
28a60dee Zhi Wang    2016-09-02  422  int intel_vgpu_alloc_resource(struct intel_vgpu *vgpu,
28a60dee Zhi Wang    2016-09-02  423  			      struct intel_vgpu_creation_params *param);
d22a48bf Changbin Du 2017-01-13  424  void intel_vgpu_reset_resource(struct intel_vgpu *vgpu);
28a60dee Zhi Wang    2016-09-02  425  void intel_vgpu_free_resource(struct intel_vgpu *vgpu);
28a60dee Zhi Wang    2016-09-02  426  void intel_vgpu_write_fence(struct intel_vgpu *vgpu,
28a60dee Zhi Wang    2016-09-02  427  	u32 fence, u64 value);
28a60dee Zhi Wang    2016-09-02  428  
90551a12 Zhenyu Wang 2017-12-19  429  /* Macros for easily accessing vGPU virtual/shadow register.
90551a12 Zhenyu Wang 2017-12-19  430     Explicitly seperate use for typed MMIO reg or real offset.*/
90551a12 Zhenyu Wang 2017-12-19  431  #define vgpu_vreg_t(vgpu, reg) \
90551a12 Zhenyu Wang 2017-12-19  432  	(*(u32 *)(vgpu->mmio.vreg + i915_mmio_reg_offset(reg)))
90551a12 Zhenyu Wang 2017-12-19  433  #define vgpu_vreg(vgpu, offset) \
90551a12 Zhenyu Wang 2017-12-19 @434  	(*(u32 *)(vgpu->mmio.vreg + (offset)))
90551a12 Zhenyu Wang 2017-12-19  435  #define vgpu_vreg64_t(vgpu, reg) \
90551a12 Zhenyu Wang 2017-12-19  436  	(*(u64 *)(vgpu->mmio.vreg + i915_mmio_reg_offset(reg)))
90551a12 Zhenyu Wang 2017-12-19  437  #define vgpu_vreg64(vgpu, offset) \
90551a12 Zhenyu Wang 2017-12-19  438  	(*(u64 *)(vgpu->mmio.vreg + (offset)))
90551a12 Zhenyu Wang 2017-12-19  439  #define vgpu_sreg_t(vgpu, reg) \
90551a12 Zhenyu Wang 2017-12-19  440  	(*(u32 *)(vgpu->mmio.sreg + i915_mmio_reg_offset(reg)))
90551a12 Zhenyu Wang 2017-12-19  441  #define vgpu_sreg(vgpu, offset) \
90551a12 Zhenyu Wang 2017-12-19  442  	(*(u32 *)(vgpu->mmio.sreg + (offset)))
82d375d1 Zhi Wang    2016-07-05  443  

:::::: The code at line 434 was first introduced by commit
:::::: 90551a1296d4dbe0dccc4c3cb5e57e7f2c929009 drm/i915/gvt: cleanup usage for typed mmio reg vs. offset

:::::: TO: Zhenyu Wang <zhenyuw at linux.intel.com>
:::::: CC: Zhenyu Wang <zhenyuw 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: 32660 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gvt-dev/attachments/20180103/cbdab4d0/attachment-0001.gz>


More information about the intel-gvt-dev mailing list