mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kuogee Hsieh <khsieh@codeaurora.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Rob Clark <robdclark@chromium.org>
Subject: drivers/gpu/drm/msm/dp/dp_display.c:496:19: warning: variable 'hpd' set but not used
Date: Tue, 1 Jun 2021 02:41:20 +0800	[thread overview]
Message-ID: <202106010214.KIqu1Zw6-lkp@intel.com> (raw)

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

Hi Kuogee,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   c2131f7e73c9e9365613e323d65c7b9e5b910f56
commit: c58eb1b54feefc3a47fab78addd14083bc941c44 drm/msm/dp: fix connect/disconnect handled at irq_hpd
date:   6 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=c58eb1b54feefc3a47fab78addd14083bc941c44
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout c58eb1b54feefc3a47fab78addd14083bc941c44
        # 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/dp/dp_display.c: In function 'dp_display_usbpd_attention_cb':
>> drivers/gpu/drm/msm/dp/dp_display.c:496:19: warning: variable 'hpd' set but not used [-Wunused-but-set-variable]
     496 |  struct dp_usbpd *hpd;
         |                   ^~~


vim +/hpd +496 drivers/gpu/drm/msm/dp/dp_display.c

c943b4948b5848 Chandan Uddaraju 2020-08-27  490  
c943b4948b5848 Chandan Uddaraju 2020-08-27  491  static int dp_display_usbpd_attention_cb(struct device *dev)
c943b4948b5848 Chandan Uddaraju 2020-08-27  492  {
c943b4948b5848 Chandan Uddaraju 2020-08-27  493  	int rc = 0;
26b8d66a399e62 Kuogee Hsieh     2020-11-03  494  	u32 sink_request;
c943b4948b5848 Chandan Uddaraju 2020-08-27  495  	struct dp_display_private *dp;
26b8d66a399e62 Kuogee Hsieh     2020-11-03 @496  	struct dp_usbpd *hpd;
c943b4948b5848 Chandan Uddaraju 2020-08-27  497  
c943b4948b5848 Chandan Uddaraju 2020-08-27  498  	if (!dev) {
c943b4948b5848 Chandan Uddaraju 2020-08-27  499  		DRM_ERROR("invalid dev\n");
c943b4948b5848 Chandan Uddaraju 2020-08-27  500  		return -EINVAL;
c943b4948b5848 Chandan Uddaraju 2020-08-27  501  	}
c943b4948b5848 Chandan Uddaraju 2020-08-27  502  
061eb621fc2780 Abhinav Kumar    2020-09-12  503  	dp = container_of(g_dp_display,
061eb621fc2780 Abhinav Kumar    2020-09-12  504  			struct dp_display_private, dp_display);
c943b4948b5848 Chandan Uddaraju 2020-08-27  505  	if (!dp) {
c943b4948b5848 Chandan Uddaraju 2020-08-27  506  		DRM_ERROR("no driver data found\n");
c943b4948b5848 Chandan Uddaraju 2020-08-27  507  		return -ENODEV;
c943b4948b5848 Chandan Uddaraju 2020-08-27  508  	}
c943b4948b5848 Chandan Uddaraju 2020-08-27  509  
26b8d66a399e62 Kuogee Hsieh     2020-11-03  510  	hpd = dp->usbpd;
26b8d66a399e62 Kuogee Hsieh     2020-11-03  511  
c943b4948b5848 Chandan Uddaraju 2020-08-27  512  	/* check for any test request issued by sink */
8ede2ecc3e5ee3 Kuogee Hsieh     2020-09-11  513  	rc = dp_link_process_request(dp->link);
26b8d66a399e62 Kuogee Hsieh     2020-11-03  514  	if (!rc) {
26b8d66a399e62 Kuogee Hsieh     2020-11-03  515  		sink_request = dp->link->sink_request;
c58eb1b54feefc Kuogee Hsieh     2020-11-18  516  		if (sink_request & DS_PORT_STATUS_CHANGED)
c58eb1b54feefc Kuogee Hsieh     2020-11-18  517  			rc = dp_display_handle_port_ststus_changed(dp);
c58eb1b54feefc Kuogee Hsieh     2020-11-18  518  		else
26b8d66a399e62 Kuogee Hsieh     2020-11-03  519  			rc = dp_display_handle_irq_hpd(dp);
26b8d66a399e62 Kuogee Hsieh     2020-11-03  520  	}
c943b4948b5848 Chandan Uddaraju 2020-08-27  521  
8ede2ecc3e5ee3 Kuogee Hsieh     2020-09-11  522  	return rc;
c943b4948b5848 Chandan Uddaraju 2020-08-27  523  }
c943b4948b5848 Chandan Uddaraju 2020-08-27  524  

:::::: The code at line 496 was first introduced by commit
:::::: 26b8d66a399e625f3aa2c02ccbab1bff2e00040c drm/msm/dp: promote irq_hpd handle to handle link training correctly

:::::: TO: Kuogee Hsieh <khsieh@codeaurora.org>
:::::: CC: Rob Clark <robdclark@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: 32155 bytes --]

             reply	other threads:[~2021-05-31 18:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-31 18:41 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-12-21  6:55 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=202106010214.KIqu1Zw6-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=khsieh@codeaurora.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

Powered by JetHome