mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: AngeloGioacchino Del Regno  <angelogioacchino.delregno@somainline.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Rob Clark <robdclark@chromium.org>
Subject: drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c:688:31: warning: variable 'cmd_enc' set but not used
Date: Tue, 1 Jun 2021 07:00:43 +0800	[thread overview]
Message-ID: <202106010735.MlSu6Hle-lkp@intel.com> (raw)

[-- 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 --]

             reply	other threads:[~2021-05-31 23:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-31 23:00 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-03-01  0:41 kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202106010735.MlSu6Hle-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=angelogioacchino.delregno@somainline.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robdclark@chromium.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®