From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on gnuweeb.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HEXHASH_WORD,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by gnuweeb.org (Postfix) with ESMTPS id CC49D82EE9 for ; Tue, 24 Jan 2023 16:03:12 +0000 (UTC) Authentication-Results: gnuweeb.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=c1XsJ9C5; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1674576192; x=1706112192; h=date:from:to:cc:subject:message-id:mime-version: content-transfer-encoding; bh=4siWcjMMycVNx7r69gc//16E+gOhn6Nvano3ZcHJHw0=; b=c1XsJ9C59i9u+J1Vn58rLaMQ29k+9OlS8xmSEovmpVY00kpIK0rHsnGv n9YNfriwnmIgOLDE4yFhiugak3r6Y1W2d429zqtTa6ky1HkttDz+Q4icO 6FObQMa0eYNjLBuIk9vC7lRNoC6oUVgsOTQ7FRdlZUTv6572gn3Gw/lXa WBUwhP2m09Gcy80PThRIYBz8eYmbqOeYvMaKFHjeVUgvur5R2Hml+yWp1 ea9MtdCEHAS+ew5qXG0QiRTvAD1lcTX0G9WlR1mkY/N7tjT/kh4K+sEW1 CHuG0CQgkRII1qutUHYgTJ55vPiCFGWi+G+mvv6pKgqZuq7yFU3/d1Pik g==; X-IronPort-AV: E=McAfee;i="6500,9779,10600"; a="325003921" X-IronPort-AV: E=Sophos;i="5.97,242,1669104000"; d="scan'208";a="325003921" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jan 2023 08:03:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10600"; a="664124177" X-IronPort-AV: E=Sophos;i="5.97,242,1669104000"; d="scan'208";a="664124177" Received: from lkp-server01.sh.intel.com (HELO 5646d64e7320) ([10.239.97.150]) by fmsmga007.fm.intel.com with ESMTP; 24 Jan 2023 08:03:06 -0800 Received: from kbuild by 5646d64e7320 with local (Exim 4.96) (envelope-from ) id 1pKLlJ-0006ay-1m; Tue, 24 Jan 2023 16:03:05 +0000 Date: Wed, 25 Jan 2023 00:02:19 +0800 From: kernel test robot To: Thomas Zimmermann Cc: oe-kbuild-all@lists.linux.dev, Ammar Faizi , GNU/Weeb Mailing List , Sasha Levin , Alex Deucher 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' Message-ID: <202301242324.wPzOhX8S-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit List-Id: 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/202301242324.wPzOhX8S-lkp@intel.com/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 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 :::::: CC: José Roberto de Souza -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests