[drm-tip:drm-tip 5/7] drivers/gpu/drm/i915/gt/intel_workarounds.c:1479:27: warning: 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: i386-randconfig-a013 (https://download.01.org/0day-ci/archive/20230312/202303121305.SUrb4Y2b-lkp@xxxxxxxxx/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        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
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=i386 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/202303121305.SUrb4Y2b-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/i915/gt/intel_workarounds.c:1479:27: warning: unused variable 'i915' [-Wunused-variable]
           struct drm_i915_private *i915 = gt->i915;
                                    ^
   1 warning generated.


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