From: kernel test robot <[email protected]>
To: Thomas Zimmermann <[email protected]>
Cc: [email protected],
Ammar Faizi <[email protected]>,
GNU/Weeb Mailing List <[email protected]>,
Sasha Levin <[email protected]>,
Alex Deucher <[email protected]>
Subject: [ammarfaizi2-block:stable/linux-stable-rc/queue/5.15 121/122] drivers/gpu/drm/i915/i915_drv.c:989:34: warning: unused variable 'i915'
Date: Wed, 25 Jan 2023 00:02:19 +0800 [thread overview]
Message-ID: <[email protected]> (raw)
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-rhel-8.3-kunit (https://download.01.org/0day-ci/archive/20230124/[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 drivers/gpu/drm/i915/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <[email protected]>
All warnings (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: warning: unused variable 'i915' [-Wunused-variable]
989 | struct drm_i915_private *i915 = to_i915(dev);
| ^~~~
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
reply other threads:[~2023-01-24 16:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
[email protected] \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox