[gvt-linux:gvt-fixes 13/13] drivers/gpu/drm/i915/gvt/sched_policy.c:311:39: error: unused variable 'scheduler'
Zhenyu Wang
zhenyuw at linux.intel.com
Thu Sep 21 00:20:06 UTC 2017
Thanks for catching this!
Changbin, pls help to fix this.
On 2017.09.21 08:23:28 +0800, kbuild test robot wrote:
> tree: https://github.com/01org/gvt-linux.git gvt-fixes
> head: 002e00c55d2db3709b6fac336eae0c302ce8f455
> commit: 002e00c55d2db3709b6fac336eae0c302ce8f455 [13/13] drm/i915/gvt: Fix GPU hang after reusing vGPU instance across different guest OS
> config: x86_64-randconfig-x018-201738 (attached as .config)
> compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
> reproduce:
> git checkout 002e00c55d2db3709b6fac336eae0c302ce8f455
> # save the attached .config to linux build tree
> make ARCH=x86_64
>
> All errors (new ones prefixed by >>):
>
> drivers/gpu/drm/i915/gvt/sched_policy.c: In function 'tbs_sched_clean_vgpu':
> >> drivers/gpu/drm/i915/gvt/sched_policy.c:311:39: error: unused variable 'scheduler' [-Werror=unused-variable]
> struct intel_gvt_workload_scheduler *scheduler = &vgpu->gvt->scheduler;
> ^~~~~~~~~
> cc1: all warnings being treated as errors
>
> vim +/scheduler +311 drivers/gpu/drm/i915/gvt/sched_policy.c
>
> 4b63960e Zhi Wang 2016-05-01 308
> 4b63960e Zhi Wang 2016-05-01 309 static void tbs_sched_clean_vgpu(struct intel_vgpu *vgpu)
> 4b63960e Zhi Wang 2016-05-01 310 {
> 0e86cc9c Changbin Du 2017-05-04 @311 struct intel_gvt_workload_scheduler *scheduler = &vgpu->gvt->scheduler;
> 0e86cc9c Changbin Du 2017-05-04 312
> 4b63960e Zhi Wang 2016-05-01 313 kfree(vgpu->sched_data);
> 4b63960e Zhi Wang 2016-05-01 314 vgpu->sched_data = NULL;
> 4b63960e Zhi Wang 2016-05-01 315 }
> 4b63960e Zhi Wang 2016-05-01 316
>
> :::::: The code at line 311 was first introduced by commit
> :::::: 0e86cc9ccc3bf557348befaddf5cb613cf3c4458 drm/i915/gvt: implement per-vm mmio switching optimization
>
> :::::: TO: Changbin Du <changbin.du 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
--
Open Source Technology Center, Intel ltd.
$gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gvt-dev/attachments/20170921/e00f9d3e/attachment.sig>
More information about the intel-gvt-dev
mailing list