All of lore.kernel.org
 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: Wed, 6 Aug 2025 07:48:55 +0800	[thread overview]
Message-ID: <202508060745.fMhGlpLI-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: loongarch-randconfig-002-20250806 (https://download.01.org/0day-ci/archive/20250806/202508060745.fMhGlpLI-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 8f09b03aebb71c154f3bbe725c29e3f47d37c26e)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250806/202508060745.fMhGlpLI-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/202508060745.fMhGlpLI-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/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 23:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-05 23:48 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-08-05 18:55 [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=202508060745.fMhGlpLI-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.