tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   06d5d309a3f17e32cd59926f391db1e1ea652184
commit: fe286893ed34b12684659d3efb907d47fe18559b drm/msm/dpu: Remove unused 
call in wait_for_commit_done
date:   4 weeks ago
config: arm-randconfig-r034-20210301 (attached as .config)
compiler: arm-linux-gnueabi-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
        # 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fe286893ed34b12684659d3efb907d47fe18559b
        git remote add linus 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout fe286893ed34b12684659d3efb907d47fe18559b
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c: In function 
'dpu_encoder_phys_cmd_wait_for_commit_done':
>> drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c:688:31: warning: 
>> variable 'cmd_enc' set but not used [-Wunused-but-set-variable]
     688 |  struct dpu_encoder_phys_cmd *cmd_enc;
         |                               ^~~~~~~


vim +/cmd_enc +688 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c

25fdd5933e4c0f Jeykumar Sankaran          2018-06-27  684  
25fdd5933e4c0f Jeykumar Sankaran          2018-06-27  685  static int 
dpu_encoder_phys_cmd_wait_for_commit_done(
25fdd5933e4c0f Jeykumar Sankaran          2018-06-27  686               struct 
dpu_encoder_phys *phys_enc)
25fdd5933e4c0f Jeykumar Sankaran          2018-06-27  687  {
25fdd5933e4c0f Jeykumar Sankaran          2018-06-27 @688       struct 
dpu_encoder_phys_cmd *cmd_enc;
25fdd5933e4c0f Jeykumar Sankaran          2018-06-27  689  
25fdd5933e4c0f Jeykumar Sankaran          2018-06-27  690       cmd_enc = 
to_dpu_encoder_phys_cmd(phys_enc);
25fdd5933e4c0f Jeykumar Sankaran          2018-06-27  691  
25fdd5933e4c0f Jeykumar Sankaran          2018-06-27  692       /* only 
required for master controller */
fe286893ed34b1 AngeloGioacchino Del Regno 2021-01-12  693       if 
(!dpu_encoder_phys_cmd_is_master(phys_enc))
fe286893ed34b1 AngeloGioacchino Del Regno 2021-01-12  694               return 
0;
25fdd5933e4c0f Jeykumar Sankaran          2018-06-27  695  
fe286893ed34b1 AngeloGioacchino Del Regno 2021-01-12  696       return 
_dpu_encoder_phys_cmd_wait_for_ctl_start(phys_enc);
25fdd5933e4c0f Jeykumar Sankaran          2018-06-27  697  }
25fdd5933e4c0f Jeykumar Sankaran          2018-06-27  698  

:::::: The code at line 688 was first introduced by commit
:::::: 25fdd5933e4c0f5fe2ea5cd59994f8ac5fbe90ef drm/msm: Add SDM845 DPU support

:::::: TO: Jeykumar Sankaran <[email protected]>
:::::: CC: Sean Paul <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

Reply via email to