linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c:460:23: warning: variable 'lm' set but not used
@ 2020-09-04  3:35 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-09-04  3:35 UTC (permalink / raw)
  To: Kalyan Thota; +Cc: kbuild-all, linux-kernel, Rob Clark

[-- Attachment #1: Type: text/plain, Size: 2953 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   59126901f200f5fc907153468b03c64e0081b6e6
commit: 4259ff7ae509ed880b3a7bb685972c3a3bf4b74b drm/msm/dpu: add support for pcc color block in dpu driver
date:   4 months ago
config: arm64-randconfig-r013-20200904 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 4259ff7ae509ed880b3a7bb685972c3a3bf4b74b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c: In function '_dpu_crtc_setup_cp_blocks':
>> drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c:460:23: warning: variable 'lm' set but not used [-Wunused-but-set-variable]
     460 |  struct dpu_hw_mixer *lm;
         |                       ^~

# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4259ff7ae509ed880b3a7bb685972c3a3bf4b74b
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 4259ff7ae509ed880b3a7bb685972c3a3bf4b74b
vim +/lm +460 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c

   452	
   453	static void _dpu_crtc_setup_cp_blocks(struct drm_crtc *crtc)
   454	{
   455		struct drm_crtc_state *state = crtc->state;
   456		struct dpu_crtc_state *cstate = to_dpu_crtc_state(crtc->state);
   457		struct dpu_crtc_mixer *mixer = cstate->mixers;
   458		struct dpu_hw_pcc_cfg cfg;
   459		struct dpu_hw_ctl *ctl;
 > 460		struct dpu_hw_mixer *lm;
   461		struct dpu_hw_dspp *dspp;
   462		int i;
   463	
   464	
   465		if (!state->color_mgmt_changed)
   466			return;
   467	
   468		for (i = 0; i < cstate->num_mixers; i++) {
   469			ctl = mixer[i].lm_ctl;
   470			lm = mixer[i].hw_lm;
   471			dspp = mixer[i].hw_dspp;
   472	
   473			if (!dspp || !dspp->ops.setup_pcc)
   474				continue;
   475	
   476			if (!state->ctm) {
   477				dspp->ops.setup_pcc(dspp, NULL);
   478			} else {
   479				_dpu_crtc_get_pcc_coeff(state, &cfg);
   480				dspp->ops.setup_pcc(dspp, &cfg);
   481			}
   482	
   483			mixer[i].flush_mask |= ctl->ops.get_bitmask_dspp(ctl,
   484				mixer[i].hw_dspp->idx);
   485	
   486			/* stage config flush mask */
   487			ctl->ops.update_pending_flush(ctl, mixer[i].flush_mask);
   488	
   489			DPU_DEBUG("lm %d, ctl %d, flush mask 0x%x\n",
   490				mixer[i].hw_lm->idx - DSPP_0,
   491				ctl->idx - CTL_0,
   492				mixer[i].flush_mask);
   493		}
   494	}
   495	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35218 bytes --]

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

only message in thread, other threads:[~2020-09-04  3:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-04  3:35 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c:460:23: warning: variable 'lm' set but not used 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).