All of lore.kernel.org
 help / color / mirror / Atom feed
* [krzk-github:b4/sm8750-display-dts-and-panel 87/88] drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c:699:6: warning: variable 'val' set but not used
@ 2025-02-10 17:40 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-02-10 17:40 UTC (permalink / raw)
  To: Krzysztof Kozlowski; +Cc: llvm, oe-kbuild-all

tree:   https://github.com/krzk/linux b4/sm8750-display-dts-and-panel
head:   9c9642e37ccbac048317945fa497012c10aedc07
commit: a7fe47cf1a3d1699f276ae91354900afc05d69bd [87/88] DEBUG: testing ideas from Qcom
config: x86_64-buildonly-randconfig-005-20250210 (https://download.01.org/0day-ci/archive/20250211/202502110104.jEgR81mo-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250211/202502110104.jEgR81mo-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/202502110104.jEgR81mo-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c:699:6: warning: variable 'val' set but not used [-Wunused-but-set-variable]
     699 |         u32 val = 0;
         |             ^
   1 warning generated.


vim +/val +699 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c

e1a950eec25656e Abhinav Kumar       2022-04-26  694  
2c266a634ad2814 Krzysztof Kozlowski 2025-01-13  695  static void dpu_hw_ctl_set_active_fetch_pipes(struct dpu_hw_ctl *ctx,
b3652e87c03c70d Krishna Manikandan  2021-04-06  696  					      unsigned long *fetch_active)
b3652e87c03c70d Krishna Manikandan  2021-04-06  697  {
b3652e87c03c70d Krishna Manikandan  2021-04-06  698  	int i;
b3652e87c03c70d Krishna Manikandan  2021-04-06 @699  	u32 val = 0;
b3652e87c03c70d Krishna Manikandan  2021-04-06  700  
b3652e87c03c70d Krishna Manikandan  2021-04-06  701  	if (fetch_active) {
b3652e87c03c70d Krishna Manikandan  2021-04-06  702  		for (i = 0; i < SSPP_MAX; i++) {
b3652e87c03c70d Krishna Manikandan  2021-04-06  703  			if (test_bit(i, fetch_active) &&
b3652e87c03c70d Krishna Manikandan  2021-04-06  704  				fetch_tbl[i] != CTL_INVALID_BIT)
b3652e87c03c70d Krishna Manikandan  2021-04-06  705  				val |= BIT(fetch_tbl[i]);
b3652e87c03c70d Krishna Manikandan  2021-04-06  706  		}
b3652e87c03c70d Krishna Manikandan  2021-04-06  707  	}
b3652e87c03c70d Krishna Manikandan  2021-04-06  708  
a7fe47cf1a3d169 Krzysztof Kozlowski 2025-02-10  709  	// DPU_REG_WRITE(&ctx->hw, CTL_FETCH_PIPE_ACTIVE, val);
b3652e87c03c70d Krishna Manikandan  2021-04-06  710  }
b3652e87c03c70d Krishna Manikandan  2021-04-06  711  

:::::: The code at line 699 was first introduced by commit
:::::: b3652e87c03c70d8e6e04a17afa475f6855169d1 drm/msm/disp/dpu1: add support to program fetch active in ctl path

:::::: TO: Krishna Manikandan <mkrishn@codeaurora.org>
:::::: CC: Rob Clark <robdclark@chromium.org>

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2025-02-10 17:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-10 17:40 [krzk-github:b4/sm8750-display-dts-and-panel 87/88] drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c:699:6: warning: variable 'val' set but not used kernel test robot

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.