lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202009041120.rLj97Ycq%lkp@intel.com>
Date:   Fri, 4 Sep 2020 11:35:24 +0800
From:   kernel test robot <lkp@...el.com>
To:     Kalyan Thota <kalyan_t@...eaurora.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Rob Clark <robdclark@...omium.org>
Subject: drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c:460:23: warning: variable
 'lm' set but not used

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@...el.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

Download attachment ".config.gz" of type "application/gzip" (35218 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ