[drm-tip:drm-tip 5/7] drivers/gpu/drm/i915/gt/intel_workarounds.c:1479:34: error: unused variable 'i915'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   git://anongit.freedesktop.org/drm/drm-tip drm-tip
head:   b21ced77ae1dbc3d8b01d3aef3c99bba7377a69b
commit: 878ab630c6059f436bdf6bdef59f97eb5753a155 [5/7] Merge remote-tracking branch 'drm-intel/drm-intel-gt-next' into drm-tip
config: x86_64-defconfig (https://download.01.org/0day-ci/archive/20230312/202303121304.7ijxTeDU-lkp@xxxxxxxxx/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        git remote add drm-tip git://anongit.freedesktop.org/drm/drm-tip
        git fetch --no-tags drm-tip drm-tip
        git checkout 878ab630c6059f436bdf6bdef59f97eb5753a155
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 olddefconfig
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/gpu/drm/i915/

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Link: https://lore.kernel.org/oe-kbuild-all/202303121304.7ijxTeDU-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   drivers/gpu/drm/i915/gt/intel_workarounds.c: In function 'dg1_gt_workarounds_init':
>> drivers/gpu/drm/i915/gt/intel_workarounds.c:1479:34: error: unused variable 'i915' [-Werror=unused-variable]
    1479 |         struct drm_i915_private *i915 = gt->i915;
         |                                  ^~~~
   cc1: all warnings being treated as errors


vim +/i915 +1479 drivers/gpu/drm/i915/gt/intel_workarounds.c

f52fa57ae70e2e Matt Roper                  2020-07-16  1475  
da942750928a03 Stuart Summers              2020-10-14  1476  static void
d0a652493abd86 Venkata Sandeep Dhanalakota 2021-09-17  1477  dg1_gt_workarounds_init(struct intel_gt *gt, struct i915_wa_list *wal)
da942750928a03 Stuart Summers              2020-10-14  1478  {
d0a652493abd86 Venkata Sandeep Dhanalakota 2021-09-17 @1479  	struct drm_i915_private *i915 = gt->i915;
d0a652493abd86 Venkata Sandeep Dhanalakota 2021-09-17  1480  
d0a652493abd86 Venkata Sandeep Dhanalakota 2021-09-17  1481  	gen12_gt_workarounds_init(gt, wal);
da942750928a03 Stuart Summers              2020-10-14  1482  
da942750928a03 Stuart Summers              2020-10-14  1483  	/* Wa_1409420604:dg1 */
d1b3657fb5b66a Lucas De Marchi             2023-03-06  1484  	wa_mcr_write_or(wal, SUBSLICE_UNIT_LEVEL_CLKGATE2,
da942750928a03 Stuart Summers              2020-10-14  1485  			CPSSUNIT_CLKGATE_DIS);
da942750928a03 Stuart Summers              2020-10-14  1486  
da942750928a03 Stuart Summers              2020-10-14  1487  	/* Wa_1408615072:dg1 */
da942750928a03 Stuart Summers              2020-10-14  1488  	/* Empirical testing shows this register is unaffected by engine reset. */
d1b3657fb5b66a Lucas De Marchi             2023-03-06  1489  	wa_write_or(wal, UNSLICE_UNIT_LEVEL_CLKGATE2, VSUNIT_CLKGATE_DIS_TGL);
da942750928a03 Stuart Summers              2020-10-14  1490  }
da942750928a03 Stuart Summers              2020-10-14  1491  

:::::: The code at line 1479 was first introduced by commit
:::::: d0a652493abd86180ad0cc0ed44427831d37fabe drm/i915: Make wa list per-gt

:::::: TO: Venkata Sandeep Dhanalakota <venkata.s.dhanalakota@xxxxxxxxx>
:::::: CC: Matt Roper <matthew.d.roper@xxxxxxxxx>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux