llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Nemesa Garg <nemesa.garg@intel.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Suraj Kandpal <suraj.kandpal@intel.com>,
	Animesh Manna <animesh.manna@intel.com>
Subject: [drm-i915:drm-intel-next 1/1] drivers/gpu/drm/i915/display/skl_scaler.c:967:57: warning: variable 'id' is uninitialized when used here
Date: Tue, 5 Aug 2025 20:55:19 +0200	[thread overview]
Message-ID: <202508052002.gCODptW2-lkp@intel.com> (raw)

tree:   https://gitlab.freedesktop.org/drm/i915/kernel drm-intel-next
head:   73309ed9d598d35576431c4691813e080980df68
commit: 73309ed9d598d35576431c4691813e080980df68 [1/1] drm/i915/display: WA_14011503117
config: x86_64-buildonly-randconfig-2004-20250805 (https://download.01.org/0day-ci/archive/20250805/202508052002.gCODptW2-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250805/202508052002.gCODptW2-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202508052002.gCODptW2-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/i915/display/skl_scaler.c:967:57: warning: variable 'id' is uninitialized when used here [-Wuninitialized]
     967 |         intel_de_write_fw(display, SKL_PS_ECC_STAT(crtc->pipe, id), 1);
         |                                                                ^~
   drivers/gpu/drm/i915/display/intel_display_regs.h:1193:8: note: expanded from macro 'SKL_PS_ECC_STAT'
    1193 |                         _ID(id, _PS_ECC_STAT_1A, _PS_ECC_STAT_2A),   \
         |                             ^~
   drivers/gpu/drm/i915/display/intel_display_regs.h:1043:34: note: expanded from macro '_ID'
    1043 | #define _ID(id, a, b) _PICK_EVEN(id, a, b)
         |                                  ^~
   drivers/gpu/drm/i915/i915_reg_defs.h:127:49: note: expanded from macro '_PICK_EVEN'
     127 | #define _PICK_EVEN(__index, __a, __b) ((__a) + (__index) * ((__b) - (__a)))
         |                                                 ^~~~~~~
   note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
   drivers/gpu/drm/i915/display/intel_display_reg_defs.h:18:45: note: expanded from macro '_PIPE'
      18 | #define _PIPE(pipe, a, b)               _PICK_EVEN(pipe, a, b)
         |                                                          ^
   drivers/gpu/drm/i915/i915_reg_defs.h:127:41: note: expanded from macro '_PICK_EVEN'
     127 | #define _PICK_EVEN(__index, __a, __b) ((__a) + (__index) * ((__b) - (__a)))
         |                                         ^~~
   drivers/gpu/drm/i915/i915_reg_defs.h:181:47: note: expanded from macro '_MMIO'
     181 | #define _MMIO(r) ((const i915_reg_t){ .reg = (r) })
         |                                               ^
   drivers/gpu/drm/i915/display/skl_scaler.c:962:8: note: initialize the variable 'id' to silence this warning
     962 |         int id;
         |               ^
         |                = 0
   1 warning generated.


vim +/id +967 drivers/gpu/drm/i915/display/skl_scaler.c

   955	
   956	void adl_scaler_ecc_unmask(const struct intel_crtc_state *crtc_state)
   957	{
   958		struct intel_display *display = to_intel_display(crtc_state);
   959		struct intel_crtc *crtc = to_intel_crtc(crtc_state->uapi.crtc);
   960		const struct intel_crtc_scaler_state *scaler_state =
   961			&crtc_state->scaler_state;
   962		int id;
   963	
   964		if (!scaler_state && scaler_state->scaler_id == -1)
   965			return;
   966	
 > 967		intel_de_write_fw(display, SKL_PS_ECC_STAT(crtc->pipe, id), 1);

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

             reply	other threads:[~2025-08-05 18:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-05 18:55 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-08-05 23:48 [drm-i915:drm-intel-next 1/1] drivers/gpu/drm/i915/display/skl_scaler.c:967:57: warning: variable 'id' is uninitialized when used here kernel test robot

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 \
    --in-reply-to=202508052002.gCODptW2-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=animesh.manna@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=nemesa.garg@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=suraj.kandpal@intel.com \
    /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;
as well as URLs for NNTP newsgroup(s).