[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202210070319.2R72PPM5-lkp@intel.com>
Date: Fri, 7 Oct 2022 03:24:40 +0800
From: kernel test robot <lkp@...el.com>
To: Zheng Wang <zyytlz.wz@....com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
0day robot <lkp@...el.com>
Subject: drivers/gpu/drm/i915/gvt/gtt.c:1022:28: error: unused variable 'vgpu'
tree: https://github.com/intel-lab-lkp/linux/commits/UPDATE-20221007-010044/Zheng-Wang/drm-i915-gvt-fix-double-free-bug-in-split_2MB_gtt_entry/20220928-113551
head: 03cc4c7d417a0ec6ca4b2d1c30a9e3fd7fb96185
commit: 03cc4c7d417a0ec6ca4b2d1c30a9e3fd7fb96185 drm/i915/gvt: fix double free bug in split_2MB_gtt_entry
date: 2 hours ago
config: x86_64-rhel-8.3-syz
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/intel-lab-lkp/linux/commit/03cc4c7d417a0ec6ca4b2d1c30a9e3fd7fb96185
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review UPDATE-20221007-010044/Zheng-Wang/drm-i915-gvt-fix-double-free-bug-in-split_2MB_gtt_entry/20220928-113551
git checkout 03cc4c7d417a0ec6ca4b2d1c30a9e3fd7fb96185
# save the config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
drivers/gpu/drm/i915/gvt/gtt.c: In function 'ppgtt_invalidate_and_free_spt':
>> drivers/gpu/drm/i915/gvt/gtt.c:1022:28: error: unused variable 'vgpu' [-Werror=unused-variable]
1022 | struct intel_vgpu *vgpu = spt->vgpu;
| ^~~~
cc1: all warnings being treated as errors
vim +/vgpu +1022 drivers/gpu/drm/i915/gvt/gtt.c
cf4ee73fd9b6d3 Changbin Du 2018-03-01 1019
03cc4c7d417a0e Zheng Wang 2022-10-07 1020 static int ppgtt_invalidate_and_free_spt(struct intel_vgpu_ppgtt_spt *spt)
2707e44466881d Zhi Wang 2016-03-28 1021 {
695fbc08d80f93 Tina Zhang 2017-03-10 @1022 struct intel_vgpu *vgpu = spt->vgpu;
2707e44466881d Zhi Wang 2016-03-28 1023 int ret;
2707e44466881d Zhi Wang 2016-03-28 1024
2707e44466881d Zhi Wang 2016-03-28 1025 trace_spt_change(spt->vgpu->id, "die", spt,
44b467338094d8 Changbin Du 2018-01-30 1026 spt->guest_page.gfn, spt->shadow_page.type);
80e76ea631de6e Changbin Du 2018-05-15 1027 if (ppgtt_put_spt(spt) > 0)
2707e44466881d Zhi Wang 2016-03-28 1028 return 0;
03cc4c7d417a0e Zheng Wang 2022-10-07 1029 ret = ppgtt_invalidate_spt(spt);
03cc4c7d417a0e Zheng Wang 2022-10-07 1030 if (!ret) {
03cc4c7d417a0e Zheng Wang 2022-10-07 1031 trace_spt_change(spt->vgpu->id, "release", spt,
03cc4c7d417a0e Zheng Wang 2022-10-07 1032 spt->guest_page.gfn, spt->shadow_page.type);
03cc4c7d417a0e Zheng Wang 2022-10-07 1033 ppgtt_free_spt(spt);
03cc4c7d417a0e Zheng Wang 2022-10-07 1034 }
03cc4c7d417a0e Zheng Wang 2022-10-07 1035
03cc4c7d417a0e Zheng Wang 2022-10-07 1036 return ret;
03cc4c7d417a0e Zheng Wang 2022-10-07 1037 }
03cc4c7d417a0e Zheng Wang 2022-10-07 1038
--
0-DAY CI Kernel Test Service
https://01.org/lkp
View attachment "config" of type "text/plain" (181568 bytes)
Powered by blists - more mailing lists