* [ammarfaizi2-block:stable/linux-stable-rc/queue/5.15 121/122] drivers/gpu/drm/i915/i915_drv.c:989:34: error: unused variable 'i915'
@ 2023-01-24 16:12 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-01-24 16:12 UTC (permalink / raw)
To: Thomas Zimmermann
Cc: oe-kbuild-all, Ammar Faizi, GNU/Weeb Mailing List, Sasha Levin,
Alex Deucher
tree: https://github.com/ammarfaizi2/linux-block stable/linux-stable-rc/queue/5.15
head: 7cc9dd6506b6dba986366c8ef94cf8e92a6437d1
commit: 3fb7d3522949e00f2711942ede083ef73aa2f6be [121/122] drm/i915: Allow switching away via vga-switcheroo if uninitialized
config: x86_64-defconfig (https://download.01.org/0day-ci/archive/20230125/[email protected]/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# https://github.com/ammarfaizi2/linux-block/commit/3fb7d3522949e00f2711942ede083ef73aa2f6be
git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
git fetch --no-tags ammarfaizi2-block stable/linux-stable-rc/queue/5.15
git checkout 3fb7d3522949e00f2711942ede083ef73aa2f6be
# 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
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>
All errors (new ones prefixed by >>):
drivers/gpu/drm/i915/i915_drv.c: In function 'i915_driver_lastclose':
>> drivers/gpu/drm/i915/i915_drv.c:989:34: error: unused variable 'i915' [-Werror=unused-variable]
989 | struct drm_i915_private *i915 = to_i915(dev);
| ^~~~
cc1: all warnings being treated as errors
vim +/i915 +989 drivers/gpu/drm/i915/i915_drv.c
71386ef9008817 Oscar Mateo 2014-07-24 974
0673ad472b9849 Chris Wilson 2016-06-24 975 /**
0673ad472b9849 Chris Wilson 2016-06-24 976 * i915_driver_lastclose - clean up after all DRM clients have exited
0673ad472b9849 Chris Wilson 2016-06-24 977 * @dev: DRM device
0673ad472b9849 Chris Wilson 2016-06-24 978 *
0673ad472b9849 Chris Wilson 2016-06-24 979 * Take care of cleaning up after all DRM clients have exited. In the
0673ad472b9849 Chris Wilson 2016-06-24 980 * mode setting case, we want to restore the kernel's initial mode (just
0673ad472b9849 Chris Wilson 2016-06-24 981 * in case the last client left us in a bad state).
0673ad472b9849 Chris Wilson 2016-06-24 982 *
0673ad472b9849 Chris Wilson 2016-06-24 983 * Additionally, in the non-mode setting case, we'll tear down the GTT
0673ad472b9849 Chris Wilson 2016-06-24 984 * and DMA structures, since the kernel won't be using them, and clea
0673ad472b9849 Chris Wilson 2016-06-24 985 * up any GEM state.
0673ad472b9849 Chris Wilson 2016-06-24 986 */
0673ad472b9849 Chris Wilson 2016-06-24 987 static void i915_driver_lastclose(struct drm_device *dev)
0673ad472b9849 Chris Wilson 2016-06-24 988 {
5df7bd130818df José Roberto de Souza 2021-04-08 @989 struct drm_i915_private *i915 = to_i915(dev);
5df7bd130818df José Roberto de Souza 2021-04-08 990
0673ad472b9849 Chris Wilson 2016-06-24 991 intel_fbdev_restore_mode(dev);
5df7bd130818df José Roberto de Souza 2021-04-08 992
0673ad472b9849 Chris Wilson 2016-06-24 993 vga_switcheroo_process_delayed_switch();
0673ad472b9849 Chris Wilson 2016-06-24 994 }
2911a35b2e4eb8 Ben Widawsky 2012-04-05 995
:::::: The code at line 989 was first introduced by commit
:::::: 5df7bd130818dfdc9047c2a81b19737d66e55f9a drm/i915: skip display initialization when there is no display
:::::: TO: José Roberto de Souza <[email protected]>
:::::: CC: José Roberto de Souza <[email protected]>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-01-24 16:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-24 16:12 [ammarfaizi2-block:stable/linux-stable-rc/queue/5.15 121/122] drivers/gpu/drm/i915/i915_drv.c:989:34: error: unused variable 'i915' kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox