Re: [PATCH v5 5/5] power: wm831x_power: Support USB charger current limit management

From: kbuild test robot
Date: Fri Nov 06 2015 - 07:14:00 EST


Hi Baolin,

[auto build test ERROR on v4.3-rc7]
[also build test ERROR on next-20151106]

url: https://github.com/0day-ci/linux/commits/Baolin-Wang/Introduce-usb-charger-framework-to-deal-with-the-usb-gadget-power-negotation/20151106-194008
config: i386-allmodconfig (attached as .config)
reproduce:
# save the attached .config to linux build tree
make ARCH=i386

All errors (new ones prefixed by >>):

In file included from drivers/power/wm831x_power.c:16:0:
>> include/linux/usb/usb_charger.h:53:24: error: field 'old_gadget_state' has incomplete type
enum usb_device_state old_gadget_state;
^

vim +/old_gadget_state +53 include/linux/usb/usb_charger.h

714a0d15 Baolin Wang 2015-11-06 47 /* for supporting extcon usb gpio */
714a0d15 Baolin Wang 2015-11-06 48 struct extcon_dev *extcon_dev;
714a0d15 Baolin Wang 2015-11-06 49 struct usb_charger_nb extcon_nb;
714a0d15 Baolin Wang 2015-11-06 50
714a0d15 Baolin Wang 2015-11-06 51 /* for supporting usb gadget */
714a0d15 Baolin Wang 2015-11-06 52 struct usb_gadget *gadget;
714a0d15 Baolin Wang 2015-11-06 @53 enum usb_device_state old_gadget_state;
714a0d15 Baolin Wang 2015-11-06 54 struct notifier_block gadget_nb;
714a0d15 Baolin Wang 2015-11-06 55
714a0d15 Baolin Wang 2015-11-06 56 /* for supporting power supply */

:::::: The code at line 53 was first introduced by commit
:::::: 714a0d150788929d583a0c0961bfaa4242be83f3 gadget: Introduce the usb charger framework

:::::: TO: Baolin Wang <baolin.wang@xxxxxxxxxx>
:::::: CC: 0day robot <fengguang.wu@xxxxxxxxx>

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

Attachment: .config.gz
Description: Binary data