linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c:688:31: warning: variable 'cmd_enc' set but not used
@ 2021-03-01  0:41 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-03-01  0:41 UTC (permalink / raw)
  To: AngeloGioacchino Del Regno; +Cc: kbuild-all, linux-kernel, Rob Clark

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

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 <lkp@intel.com>

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 <jsanka@codeaurora.org>
:::::: CC: Sean Paul <seanpaul@chromium.org>

---
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: 39144 bytes --]

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

* drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c:688:31: warning: variable 'cmd_enc' set but not used
@ 2021-05-31 23:00 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-05-31 23:00 UTC (permalink / raw)
  To: AngeloGioacchino Del Regno; +Cc: kbuild-all, linux-kernel, Rob Clark

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

Hi AngeloGioacchino,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   c2131f7e73c9e9365613e323d65c7b9e5b910f56
commit: fe286893ed34b12684659d3efb907d47fe18559b drm/msm/dpu: Remove unused call in wait_for_commit_done
date:   4 months ago
config: arm-randconfig-r012-20210531 (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 <lkp@intel.com>

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 <jsanka@codeaurora.org>
:::::: CC: Sean Paul <seanpaul@chromium.org>

---
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: 32560 bytes --]

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

end of thread, other threads:[~2021-05-31 23:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-01  0:41 drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c:688:31: warning: variable 'cmd_enc' set but not used kernel test robot
2021-05-31 23:00 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).