llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [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
@ 2025-08-05 18:55 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-08-05 18:55 UTC (permalink / raw)
  To: Nemesa Garg; +Cc: llvm, oe-kbuild-all, Suraj Kandpal, Animesh Manna

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [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
@ 2025-08-05 23:48 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-08-05 23:48 UTC (permalink / raw)
  To: Nemesa Garg; +Cc: llvm, oe-kbuild-all, Suraj Kandpal, Animesh Manna

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-08-05 23:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
  -- strict thread matches above, loose matches on Subject: below --
2025-08-05 18:55 kernel test robot

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).