All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Ravi Chandra Sadineni <ravisadineni@chromium.org>
Cc: kbuild-all@01.org, stern@rowland.harvard.edu,
	gregkh@linuxfoundation.org, martin.blumenstingl@googlemail.com,
	ravisadineni@google.com, chunfeng.yun@mediatek.com,
	johan@kernel.org, arvind.yadav.cs@gmail.com, dtor@google.com,
	anton.bondarenko.sama@gmail.com, f.fainelli@gmail.com,
	keescook@chromium.org, mathias.nyman@linux.intel.com,
	felipe.balbi@linux.intel.com, ekorenevsky@gmail.com,
	peter.chen@nxp.com, joe@perches.com, tbroch@google.com,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
	rajatja@google.com, bleung@google.com,
	Ravi Chandra Sadineni <ravisadineni@chromium.org>
Subject: Re: [PATCH] USB: Increment wakeup count on remote wakeup.
Date: Thu, 19 Apr 2018 17:30:58 +0800	[thread overview]
Message-ID: <201804191735.lGfX5YTi%fengguang.wu@intel.com> (raw)
In-Reply-To: <20180419001850.133110-1-ravisadineni@chromium.org>

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

Hi Ravi,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on usb/usb-testing]
[also build test ERROR on v4.17-rc1 next-20180419]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Ravi-Chandra-Sadineni/USB-Increment-wakeup-count-on-remote-wakeup/20180419-165317
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
config: x86_64-randconfig-x013-201815 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/usb//core/hcd.c: In function 'usb_hcd_resume_root_hub':
>> drivers/usb//core/hcd.c:2378:18: error: 'dev' undeclared (first use in this function); did you mean 'cdev'?
     pm_wakeup_event(dev, 0);
                     ^~~
                     cdev
   drivers/usb//core/hcd.c:2378:18: note: each undeclared identifier is reported only once for each function it appears in

vim +2378 drivers/usb//core/hcd.c

  2364	
  2365	/**
  2366	 * usb_hcd_resume_root_hub - called by HCD to resume its root hub
  2367	 * @hcd: host controller for this root hub
  2368	 *
  2369	 * The USB host controller calls this function when its root hub is
  2370	 * suspended (with the remote wakeup feature enabled) and a remote
  2371	 * wakeup request is received.  The routine submits a workqueue request
  2372	 * to resume the root hub (that is, manage its downstream ports again).
  2373	 */
  2374	void usb_hcd_resume_root_hub (struct usb_hcd *hcd)
  2375	{
  2376		unsigned long flags;
  2377	
> 2378		pm_wakeup_event(dev, 0);
  2379		spin_lock_irqsave (&hcd_root_hub_lock, flags);
  2380		if (hcd->rh_registered) {
  2381			set_bit(HCD_FLAG_WAKEUP_PENDING, &hcd->flags);
  2382			queue_work(pm_wq, &hcd->wakeup_work);
  2383		}
  2384		spin_unlock_irqrestore (&hcd_root_hub_lock, flags);
  2385	}
  2386	EXPORT_SYMBOL_GPL(usb_hcd_resume_root_hub);
  2387	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 29813 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kbuild test robot <lkp@intel.com>
To: Ravi Chandra Sadineni <ravisadineni@chromium.org>
Cc: kbuild-all@01.org, stern@rowland.harvard.edu,
	gregkh@linuxfoundation.org, martin.blumenstingl@googlemail.com,
	ravisadineni@google.com, chunfeng.yun@mediatek.com,
	johan@kernel.org, arvind.yadav.cs@gmail.com, dtor@google.com,
	anton.bondarenko.sama@gmail.com, f.fainelli@gmail.com,
	keescook@chromium.org, mathias.nyman@linux.intel.com,
	felipe.balbi@linux.intel.com, ekorenevsky@gmail.com,
	peter.chen@nxp.com, joe@perches.com, tbroch@google.com,
	linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org,
	rajatja@google.com, bleung@google.com
Subject: USB: Increment wakeup count on remote wakeup.
Date: Thu, 19 Apr 2018 17:30:58 +0800	[thread overview]
Message-ID: <201804191735.lGfX5YTi%fengguang.wu@intel.com> (raw)

Hi Ravi,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on usb/usb-testing]
[also build test ERROR on v4.17-rc1 next-20180419]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Ravi-Chandra-Sadineni/USB-Increment-wakeup-count-on-remote-wakeup/20180419-165317
base:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-testing
config: x86_64-randconfig-x013-201815 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-16) 7.3.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/usb//core/hcd.c: In function 'usb_hcd_resume_root_hub':
>> drivers/usb//core/hcd.c:2378:18: error: 'dev' undeclared (first use in this function); did you mean 'cdev'?
     pm_wakeup_event(dev, 0);
                     ^~~
                     cdev
   drivers/usb//core/hcd.c:2378:18: note: each undeclared identifier is reported only once for each function it appears in

vim +2378 drivers/usb//core/hcd.c

  2364	
  2365	/**
  2366	 * usb_hcd_resume_root_hub - called by HCD to resume its root hub
  2367	 * @hcd: host controller for this root hub
  2368	 *
  2369	 * The USB host controller calls this function when its root hub is
  2370	 * suspended (with the remote wakeup feature enabled) and a remote
  2371	 * wakeup request is received.  The routine submits a workqueue request
  2372	 * to resume the root hub (that is, manage its downstream ports again).
  2373	 */
  2374	void usb_hcd_resume_root_hub (struct usb_hcd *hcd)
  2375	{
  2376		unsigned long flags;
  2377	
> 2378		pm_wakeup_event(dev, 0);
  2379		spin_lock_irqsave (&hcd_root_hub_lock, flags);
  2380		if (hcd->rh_registered) {
  2381			set_bit(HCD_FLAG_WAKEUP_PENDING, &hcd->flags);
  2382			queue_work(pm_wq, &hcd->wakeup_work);
  2383		}
  2384		spin_unlock_irqrestore (&hcd_root_hub_lock, flags);
  2385	}
  2386	EXPORT_SYMBOL_GPL(usb_hcd_resume_root_hub);
  2387
---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

  reply	other threads:[~2018-04-19  9:30 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-19  0:18 [PATCH] USB: Increment wakeup count on remote wakeup Ravi Chandra Sadineni
2018-04-19  0:18 ` Ravi Chandra Sadineni
2018-04-19  9:30 ` kbuild test robot [this message]
2018-04-19  9:30   ` kbuild test robot
2018-04-19  9:33 ` [PATCH] " kbuild test robot
2018-04-19  9:33   ` kbuild test robot
2018-04-19 15:01 ` [PATCH] " Alan Stern
2018-04-19 15:01   ` Alan Stern
2018-04-19 16:17   ` [PATCH] " Rajat Jain
2018-04-19 16:17     ` Rajat Jain
2018-04-20  0:27   ` [PATCH V2] " Ravi Chandra Sadineni
2018-04-20  0:27     ` [V2] " Ravi Chandra Sadineni
2018-04-20 14:12     ` [PATCH V2] " Alan Stern
2018-04-20 14:12       ` [V2] " Alan Stern
2018-04-20 17:05       ` [PATCH V3] " Ravi Chandra Sadineni
2018-04-20 17:05         ` [V3] " Ravi Chandra Sadineni
2018-04-20 17:29         ` [PATCH V3] " Alan Stern
2018-04-20 17:29           ` [V3] " Alan Stern
2018-04-20 17:54           ` [PATCH V4] " Ravi Chandra Sadineni
2018-04-20 17:54             ` [V4] " Ravi Chandra Sadineni
2018-04-20 18:08           ` [PATCH V5] " Ravi Chandra Sadineni
2018-04-20 18:08             ` [V5] " Ravi Chandra Sadineni
2018-04-20 18:22             ` [PATCH V5] " Alan Stern
2018-04-20 18:22               ` [V5] " Alan Stern
2018-04-21  8:59             ` [PATCH V5] " Greg KH
2018-04-21  8:59               ` [V5] " Greg Kroah-Hartman
2018-04-21 13:37               ` [PATCH V5] " Ravi Chandra Sadineni
2018-04-21 13:37                 ` [V5] " Ravi Chandra Sadineni
2018-04-20 18:12           ` [PATCH V3] " Ravi Chandra Sadineni
2018-04-20 18:12             ` [V3] " Ravi Chandra Sadineni
2018-04-20 17:07       ` [PATCH V2] " Ravi Chandra Sadineni
2018-04-20 17:07         ` [V2] " Ravi Chandra Sadineni
2018-04-20  0:50   ` [PATCH] " Ravi Chandra Sadineni
2018-04-20  0:50     ` Ravi Chandra Sadineni

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=201804191735.lGfX5YTi%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=anton.bondarenko.sama@gmail.com \
    --cc=arvind.yadav.cs@gmail.com \
    --cc=bleung@google.com \
    --cc=chunfeng.yun@mediatek.com \
    --cc=dtor@google.com \
    --cc=ekorenevsky@gmail.com \
    --cc=f.fainelli@gmail.com \
    --cc=felipe.balbi@linux.intel.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=joe@perches.com \
    --cc=johan@kernel.org \
    --cc=kbuild-all@01.org \
    --cc=keescook@chromium.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=martin.blumenstingl@googlemail.com \
    --cc=mathias.nyman@linux.intel.com \
    --cc=peter.chen@nxp.com \
    --cc=rajatja@google.com \
    --cc=ravisadineni@chromium.org \
    --cc=ravisadineni@google.com \
    --cc=stern@rowland.harvard.edu \
    --cc=tbroch@google.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.