From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 17C9CE9A03B for ; Wed, 18 Feb 2026 05:59:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AAA8110E197; Wed, 18 Feb 2026 05:59:40 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="YiHAYhz/"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) by gabe.freedesktop.org (Postfix) with ESMTPS id 88EC810E197; Wed, 18 Feb 2026 05:59:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1771394380; x=1802930380; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=DLItL20ZbEHuUuPcnGLdYf8yVxg7xkjOqr1FMwt1L3Y=; b=YiHAYhz/wDVxBXkXPTD6zG/kPVrEsInlzvjOEo2DaBeq+wax+AXETXw9 kK9SNXjV1ioN/XzSy4RKw1TB3z4XJu02WhqG/E1qW0ZvTqrHfLL4QJmWj G/XLL3fPEEa9ZCPYGwpa9EvDb8+APXdMClmXq5z82JYUrtdZ/JC+NSvvs yyVDPiftdaKsZNdtYpzzu+LLzOgCwX+0dGa1fkc+vVZkJIyeGxYvuiHTV WUlVlqDE0WOchMQTFl/AEzZd1g9usjoBqnZ3TIryw9qTLox2FGfhug++q OnwU7vwZvn1AhkEHw6fdVtWiBAtn5vYOEk2tDV02VtjzXMkdAlQ3X7ygj w==; X-CSE-ConnectionGUID: kLEyNEvGQq2M48TAIQbgOQ== X-CSE-MsgGUID: icLGGTQHSBO6OzpbPZ7VHg== X-IronPort-AV: E=McAfee;i="6800,10657,11704"; a="72515355" X-IronPort-AV: E=Sophos;i="6.21,297,1763452800"; d="scan'208";a="72515355" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Feb 2026 21:59:39 -0800 X-CSE-ConnectionGUID: vDiaKcdXSNSrTvLxUt+5Yg== X-CSE-MsgGUID: R0Aq4GcxSZGgIIjI/Oqtvw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,297,1763452800"; d="scan'208";a="214211115" Received: from lkp-server01.sh.intel.com (HELO 765f4a05e27f) ([10.239.97.150]) by orviesa007.jf.intel.com with ESMTP; 17 Feb 2026 21:59:37 -0800 Received: from kbuild by 765f4a05e27f with local (Exim 4.98.2) (envelope-from ) id 1vsab1-0000000126m-08zs; Wed, 18 Feb 2026 05:59:35 +0000 Date: Wed, 18 Feb 2026 13:59:27 +0800 From: kernel test robot To: Simon Richter , linux-pci@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, intel-xe@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Simon Richter Subject: Re: [PATCH 3/5] vgaarb: mark vga_get family as __must_check Message-ID: <202602181332.NDKD0g1P-lkp@intel.com> References: <20260217170419.236739-4-Simon.Richter@hogyros.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20260217170419.236739-4-Simon.Richter@hogyros.de> X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" Hi Simon, kernel test robot noticed the following build warnings: [auto build test WARNING on 9702969978695d9a699a1f34771580cdbb153b33] url: https://github.com/intel-lab-lkp/linux/commits/Simon-Richter/vgaarb-pass-vga_get-errors-to-userspace/20260218-010647 base: 9702969978695d9a699a1f34771580cdbb153b33 patch link: https://lore.kernel.org/r/20260217170419.236739-4-Simon.Richter%40hogyros.de patch subject: [PATCH 3/5] vgaarb: mark vga_get family as __must_check config: i386-randconfig-141-20260218 (https://download.01.org/0day-ci/archive/20260218/202602181332.NDKD0g1P-lkp@intel.com/config) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) smatch version: v0.5.0-8994-gd50c5a4c reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260218/202602181332.NDKD0g1P-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202602181332.NDKD0g1P-lkp@intel.com/ All warnings (new ones prefixed by >>): >> drivers/gpu/drm/i915/display/intel_vga.c:68:2: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] 68 | vga_get_uninterruptible(pdev, VGA_RSRC_LEGACY_IO); | ^~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/i915/display/intel_vga.c:93:2: warning: ignoring return value of function declared with 'warn_unused_result' attribute [-Wunused-result] 93 | vga_get_uninterruptible(pdev, VGA_RSRC_LEGACY_IO); | ^~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. vim +/warn_unused_result +68 drivers/gpu/drm/i915/display/intel_vga.c 0c80d60ae63461 Ville Syrjälä 2025-04-17 43 4fb8783165b7c6 Jani Nikula 2019-10-01 44 /* Disable the VGA plane that we never use */ 4b6e05c43b7542 Ville Syrjälä 2024-09-06 45 void intel_vga_disable(struct intel_display *display) 4fb8783165b7c6 Jani Nikula 2019-10-01 46 { 4b6e05c43b7542 Ville Syrjälä 2024-09-06 47 struct pci_dev *pdev = to_pci_dev(display->drm->dev); 4b6e05c43b7542 Ville Syrjälä 2024-09-06 48 i915_reg_t vga_reg = intel_vga_cntrl_reg(display); 0c80d60ae63461 Ville Syrjälä 2025-04-17 49 enum pipe pipe; 0c80d60ae63461 Ville Syrjälä 2025-04-17 50 u32 tmp; 4fb8783165b7c6 Jani Nikula 2019-10-01 51 u8 sr1; 4fb8783165b7c6 Jani Nikula 2019-10-01 52 0c80d60ae63461 Ville Syrjälä 2025-04-17 53 tmp = intel_de_read(display, vga_reg); 0c80d60ae63461 Ville Syrjälä 2025-04-17 54 if (tmp & VGA_DISP_DISABLE) a3af0140663dc3 Emil Velikov 2021-06-04 55 return; a3af0140663dc3 Emil Velikov 2021-06-04 56 0c80d60ae63461 Ville Syrjälä 2025-04-17 57 if (display->platform.cherryview) 0c80d60ae63461 Ville Syrjälä 2025-04-17 58 pipe = REG_FIELD_GET(VGA_PIPE_SEL_MASK_CHV, tmp); 0c80d60ae63461 Ville Syrjälä 2025-04-17 59 else if (has_vga_pipe_sel(display)) 0c80d60ae63461 Ville Syrjälä 2025-04-17 60 pipe = REG_FIELD_GET(VGA_PIPE_SEL_MASK, tmp); 0c80d60ae63461 Ville Syrjälä 2025-04-17 61 else 0c80d60ae63461 Ville Syrjälä 2025-04-17 62 pipe = PIPE_A; 0c80d60ae63461 Ville Syrjälä 2025-04-17 63 0c80d60ae63461 Ville Syrjälä 2025-04-17 64 drm_dbg_kms(display->drm, "Disabling VGA plane on pipe %c\n", 0c80d60ae63461 Ville Syrjälä 2025-04-17 65 pipe_name(pipe)); 0c80d60ae63461 Ville Syrjälä 2025-04-17 66 4fb8783165b7c6 Jani Nikula 2019-10-01 67 /* WaEnableVGAAccessThroughIOPort:ctg,elk,ilk,snb,ivb,vlv,hsw */ 4fb8783165b7c6 Jani Nikula 2019-10-01 @68 vga_get_uninterruptible(pdev, VGA_RSRC_LEGACY_IO); f0bb41fad02e03 Jani Nikula 2022-02-02 69 outb(0x01, VGA_SEQ_I); f0bb41fad02e03 Jani Nikula 2022-02-02 70 sr1 = inb(VGA_SEQ_D); f0bb41fad02e03 Jani Nikula 2022-02-02 71 outb(sr1 | VGA_SR01_SCREEN_OFF, VGA_SEQ_D); 4fb8783165b7c6 Jani Nikula 2019-10-01 72 vga_put(pdev, VGA_RSRC_LEGACY_IO); 4fb8783165b7c6 Jani Nikula 2019-10-01 73 udelay(300); 4fb8783165b7c6 Jani Nikula 2019-10-01 74 4b6e05c43b7542 Ville Syrjälä 2024-09-06 75 intel_de_write(display, vga_reg, VGA_DISP_DISABLE); 4b6e05c43b7542 Ville Syrjälä 2024-09-06 76 intel_de_posting_read(display, vga_reg); 4fb8783165b7c6 Jani Nikula 2019-10-01 77 } 4fb8783165b7c6 Jani Nikula 2019-10-01 78 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki