[gvt-linux:gvt-next 10/10] drivers/gpu/drm/i915/gvt/cmd_parser.c:1650:21: error: unused variable 'vgpu'

kbuild test robot fengguang.wu at intel.com
Wed Mar 29 20:00:09 UTC 2017


tree:   https://github.com/01org/gvt-linux.git gvt-next
head:   decbb0093e9187c5fbb9d386d823b86e3da7c157
commit: decbb0093e9187c5fbb9d386d823b86e3da7c157 [10/10] drm/i915/gvt: refine shadow batch buffer
config: x86_64-randconfig-ne0-03300145 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout decbb0093e9187c5fbb9d386d823b86e3da7c157
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/gpu/drm/i915/gvt/cmd_parser.c: In function 'perform_bb_shadow':
>> drivers/gpu/drm/i915/gvt/cmd_parser.c:1650:21: error: unused variable 'vgpu' [-Werror=unused-variable]
     struct intel_vgpu *vgpu = s->vgpu;
                        ^~~~
   cc1: all warnings being treated as errors

vim +/vgpu +1650 drivers/gpu/drm/i915/gvt/cmd_parser.c

be1da707 Zhi Wang   2016-05-03  1644  	return bb_size;
be1da707 Zhi Wang   2016-05-03  1645  }
be1da707 Zhi Wang   2016-05-03  1646  
be1da707 Zhi Wang   2016-05-03  1647  static int perform_bb_shadow(struct parser_exec_state *s)
be1da707 Zhi Wang   2016-05-03  1648  {
be1da707 Zhi Wang   2016-05-03  1649  	struct intel_shadow_bb_entry *entry_obj;
695fbc08 Tina Zhang 2017-03-10 @1650  	struct intel_vgpu *vgpu = s->vgpu;
decbb009 Tina Zhang 2017-03-16  1651  	unsigned int dst_needs_clflush;
be1da707 Zhi Wang   2016-05-03  1652  	unsigned long gma = 0;
be1da707 Zhi Wang   2016-05-03  1653  	uint32_t bb_size;

:::::: The code at line 1650 was first introduced by commit
:::::: 695fbc08d80f93ecca18a1abd8f52c2ab77fdc8d drm/i915/gvt: replace the gvt_err with gvt_vgpu_err

:::::: TO: Tina Zhang <tina.zhang at 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: 31911 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gvt-dev/attachments/20170330/6f0ded58/attachment-0001.gz>


More information about the intel-gvt-dev mailing list