[drm-misc:for-linux-next-fixes 1/2] drivers/gpu/drm/i915/i915_driver.c:1072:34: error: unused variable 'i915'

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

 



tree:   git://anongit.freedesktop.org/drm/drm-misc for-linux-next-fixes
head:   2293a73ad4f3b6c37c06713ff1b67659d92ef43d
commit: a273e95721e96885971a05f1b34cb6d093904d9d [1/2] drm/i915: Allow switching away via vga-switcheroo if uninitialized
config: x86_64-rhel-8.3-syz (https://download.01.org/0day-ci/archive/20230119/202301190659.FxGwhJ82-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-misc git://anongit.freedesktop.org/drm/drm-misc
        git fetch --no-tags drm-misc for-linux-next-fixes
        git checkout a273e95721e96885971a05f1b34cb6d093904d9d
        # 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>

Note: the drm-misc/for-linux-next-fixes HEAD 2293a73ad4f3b6c37c06713ff1b67659d92ef43d builds fine.
      It only hurts bisectability.

All errors (new ones prefixed by >>):

   drivers/gpu/drm/i915/i915_driver.c: In function 'i915_driver_lastclose':
>> drivers/gpu/drm/i915/i915_driver.c:1072:34: error: unused variable 'i915' [-Werror=unused-variable]
    1072 |         struct drm_i915_private *i915 = to_i915(dev);
         |                                  ^~~~
   cc1: all warnings being treated as errors


vim +/i915 +1072 drivers/gpu/drm/i915/i915_driver.c

71386ef9008817f drivers/gpu/drm/i915/i915_drv.c Oscar Mateo           2014-07-24  1057  
0673ad472b9849a drivers/gpu/drm/i915/i915_drv.c Chris Wilson          2016-06-24  1058  /**
0673ad472b9849a drivers/gpu/drm/i915/i915_drv.c Chris Wilson          2016-06-24  1059   * i915_driver_lastclose - clean up after all DRM clients have exited
0673ad472b9849a drivers/gpu/drm/i915/i915_drv.c Chris Wilson          2016-06-24  1060   * @dev: DRM device
0673ad472b9849a drivers/gpu/drm/i915/i915_drv.c Chris Wilson          2016-06-24  1061   *
0673ad472b9849a drivers/gpu/drm/i915/i915_drv.c Chris Wilson          2016-06-24  1062   * Take care of cleaning up after all DRM clients have exited.  In the
0673ad472b9849a drivers/gpu/drm/i915/i915_drv.c Chris Wilson          2016-06-24  1063   * mode setting case, we want to restore the kernel's initial mode (just
0673ad472b9849a drivers/gpu/drm/i915/i915_drv.c Chris Wilson          2016-06-24  1064   * in case the last client left us in a bad state).
0673ad472b9849a drivers/gpu/drm/i915/i915_drv.c Chris Wilson          2016-06-24  1065   *
0673ad472b9849a drivers/gpu/drm/i915/i915_drv.c Chris Wilson          2016-06-24  1066   * Additionally, in the non-mode setting case, we'll tear down the GTT
0673ad472b9849a drivers/gpu/drm/i915/i915_drv.c Chris Wilson          2016-06-24  1067   * and DMA structures, since the kernel won't be using them, and clea
0673ad472b9849a drivers/gpu/drm/i915/i915_drv.c Chris Wilson          2016-06-24  1068   * up any GEM state.
0673ad472b9849a drivers/gpu/drm/i915/i915_drv.c Chris Wilson          2016-06-24  1069   */
0673ad472b9849a drivers/gpu/drm/i915/i915_drv.c Chris Wilson          2016-06-24  1070  static void i915_driver_lastclose(struct drm_device *dev)
0673ad472b9849a drivers/gpu/drm/i915/i915_drv.c Chris Wilson          2016-06-24  1071  {
5df7bd130818dfd drivers/gpu/drm/i915/i915_drv.c José Roberto de Souza 2021-04-08 @1072  	struct drm_i915_private *i915 = to_i915(dev);
5df7bd130818dfd drivers/gpu/drm/i915/i915_drv.c José Roberto de Souza 2021-04-08  1073  
0673ad472b9849a drivers/gpu/drm/i915/i915_drv.c Chris Wilson          2016-06-24  1074  	intel_fbdev_restore_mode(dev);
5df7bd130818dfd drivers/gpu/drm/i915/i915_drv.c José Roberto de Souza 2021-04-08  1075  
0673ad472b9849a drivers/gpu/drm/i915/i915_drv.c Chris Wilson          2016-06-24  1076  	vga_switcheroo_process_delayed_switch();
0673ad472b9849a drivers/gpu/drm/i915/i915_drv.c Chris Wilson          2016-06-24  1077  }
2911a35b2e4eb87 drivers/gpu/drm/i915/i915_drv.c Ben Widawsky          2012-04-05  1078  

:::::: The code at line 1072 was first introduced by commit
:::::: 5df7bd130818dfdc9047c2a81b19737d66e55f9a drm/i915: skip display initialization when there is no display

:::::: TO: José Roberto de Souza <jose.souza@xxxxxxxxx>
:::::: CC: José Roberto de Souza <jose.souza@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