[balbi-usb:testing/next 64/67] drivers/usb/phy/phy-generic.c:190: undefined reference to `usb_gadget_vbus_connect'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git testing/next
head:   327475d7f63aa161bdc3bf7f9d693d9aafcd4518
commit: bcf4420283d1338b39773be8b487563c90986959 [64/67] usb: gadget: move gadget API functions to udc-core
config: arm-mvebu_v7_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (Debian 5.3.1-8) 5.3.1 20160205
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout bcf4420283d1338b39773be8b487563c90986959
        # save the attached .config to linux build tree
        make.cross ARCH=arm 

Note: the balbi-usb/testing/next HEAD 327475d7f63aa161bdc3bf7f9d693d9aafcd4518 builds fine.
      It only hurts bisectibility.

All errors (new ones prefixed by >>):

   drivers/built-in.o: In function `nop_set_peripheral':
>> drivers/usb/phy/phy-generic.c:190: undefined reference to `usb_gadget_vbus_connect'
   drivers/built-in.o: In function `nop_gpio_vbus_thread':
   drivers/usb/phy/phy-generic.c:122: undefined reference to `usb_gadget_vbus_connect'
>> drivers/usb/phy/phy-generic.c:133: undefined reference to `usb_gadget_vbus_disconnect'

vim +190 drivers/usb/phy/phy-generic.c

7acc9973e drivers/usb/phy/phy-generic.c   Robert Jarzmik            2014-12-06  127  		atomic_notifier_call_chain(&nop->phy.notifier, status,
7acc9973e drivers/usb/phy/phy-generic.c   Robert Jarzmik            2014-12-06  128  					   otg->gadget);
7acc9973e drivers/usb/phy/phy-generic.c   Robert Jarzmik            2014-12-06  129  	} else {
7acc9973e drivers/usb/phy/phy-generic.c   Robert Jarzmik            2014-12-06  130  		nop_set_vbus_draw(nop, 0);
7acc9973e drivers/usb/phy/phy-generic.c   Robert Jarzmik            2014-12-06  131  
2eafe93b9 drivers/usb/phy/phy-generic.c   Maarten ter Huurne        2016-02-28  132  		if (otg->gadget)
7acc9973e drivers/usb/phy/phy-generic.c   Robert Jarzmik            2014-12-06 @133  			usb_gadget_vbus_disconnect(otg->gadget);
7acc9973e drivers/usb/phy/phy-generic.c   Robert Jarzmik            2014-12-06  134  		status = USB_EVENT_NONE;
7acc9973e drivers/usb/phy/phy-generic.c   Robert Jarzmik            2014-12-06  135  		otg->state = OTG_STATE_B_IDLE;
7acc9973e drivers/usb/phy/phy-generic.c   Robert Jarzmik            2014-12-06  136  		nop->phy.last_event = status;
7acc9973e drivers/usb/phy/phy-generic.c   Robert Jarzmik            2014-12-06  137  
7acc9973e drivers/usb/phy/phy-generic.c   Robert Jarzmik            2014-12-06  138  		atomic_notifier_call_chain(&nop->phy.notifier, status,
7acc9973e drivers/usb/phy/phy-generic.c   Robert Jarzmik            2014-12-06  139  					   otg->gadget);
7acc9973e drivers/usb/phy/phy-generic.c   Robert Jarzmik            2014-12-06  140  	}
7acc9973e drivers/usb/phy/phy-generic.c   Robert Jarzmik            2014-12-06  141  	return IRQ_HANDLED;
7acc9973e drivers/usb/phy/phy-generic.c   Robert Jarzmik            2014-12-06  142  }
7acc9973e drivers/usb/phy/phy-generic.c   Robert Jarzmik            2014-12-06  143  
53b6fc28e drivers/usb/phy/phy-generic.c   Sebastian Andrzej Siewior 2013-07-30  144  int usb_gen_phy_init(struct usb_phy *phy)
2319fb88e drivers/usb/otg/nop-usb-xceiv.c Roger Quadros             2013-03-12  145  {
4525beeb9 drivers/usb/phy/phy-generic.c   Felipe Balbi              2014-04-16  146  	struct usb_phy_generic *nop = dev_get_drvdata(phy->dev);
2319fb88e drivers/usb/otg/nop-usb-xceiv.c Roger Quadros             2013-03-12  147  
58f735fe4 drivers/usb/otg/nop-usb-xceiv.c Roger Quadros             2013-03-12  148  	if (!IS_ERR(nop->vcc)) {
58f735fe4 drivers/usb/otg/nop-usb-xceiv.c Roger Quadros             2013-03-12  149  		if (regulator_enable(nop->vcc))
58f735fe4 drivers/usb/otg/nop-usb-xceiv.c Roger Quadros             2013-03-12  150  			dev_err(phy->dev, "Failed to enable power\n");
58f735fe4 drivers/usb/otg/nop-usb-xceiv.c Roger Quadros             2013-03-12  151  	}
58f735fe4 drivers/usb/otg/nop-usb-xceiv.c Roger Quadros             2013-03-12  152  
2319fb88e drivers/usb/otg/nop-usb-xceiv.c Roger Quadros             2013-03-12  153  	if (!IS_ERR(nop->clk))
4d175f340 drivers/usb/phy/phy-generic.c   Mark Brown                2013-08-11  154  		clk_prepare_enable(nop->clk);
2319fb88e drivers/usb/otg/nop-usb-xceiv.c Roger Quadros             2013-03-12  155  
168bdb88c drivers/usb/phy/phy-generic.c   Fabio Estevam             2015-02-03  156  	nop_reset(nop);
ad63ebfc3 drivers/usb/otg/nop-usb-xceiv.c Roger Quadros             2013-03-12  157  
2319fb88e drivers/usb/otg/nop-usb-xceiv.c Roger Quadros             2013-03-12  158  	return 0;
2319fb88e drivers/usb/otg/nop-usb-xceiv.c Roger Quadros             2013-03-12  159  }
53b6fc28e drivers/usb/phy/phy-generic.c   Sebastian Andrzej Siewior 2013-07-30  160  EXPORT_SYMBOL_GPL(usb_gen_phy_init);
2319fb88e drivers/usb/otg/nop-usb-xceiv.c Roger Quadros             2013-03-12  161  
53b6fc28e drivers/usb/phy/phy-generic.c   Sebastian Andrzej Siewior 2013-07-30  162  void usb_gen_phy_shutdown(struct usb_phy *phy)
2319fb88e drivers/usb/otg/nop-usb-xceiv.c Roger Quadros             2013-03-12  163  {
4525beeb9 drivers/usb/phy/phy-generic.c   Felipe Balbi              2014-04-16  164  	struct usb_phy_generic *nop = dev_get_drvdata(phy->dev);
2319fb88e drivers/usb/otg/nop-usb-xceiv.c Roger Quadros             2013-03-12  165  
168bdb88c drivers/usb/phy/phy-generic.c   Fabio Estevam             2015-02-03  166  	gpiod_set_value(nop->gpiod_reset, 1);
ad63ebfc3 drivers/usb/otg/nop-usb-xceiv.c Roger Quadros             2013-03-12  167  
2319fb88e drivers/usb/otg/nop-usb-xceiv.c Roger Quadros             2013-03-12  168  	if (!IS_ERR(nop->clk))
4d175f340 drivers/usb/phy/phy-generic.c   Mark Brown                2013-08-11  169  		clk_disable_unprepare(nop->clk);
58f735fe4 drivers/usb/otg/nop-usb-xceiv.c Roger Quadros             2013-03-12  170  
58f735fe4 drivers/usb/otg/nop-usb-xceiv.c Roger Quadros             2013-03-12  171  	if (!IS_ERR(nop->vcc)) {
58f735fe4 drivers/usb/otg/nop-usb-xceiv.c Roger Quadros             2013-03-12  172  		if (regulator_disable(nop->vcc))
58f735fe4 drivers/usb/otg/nop-usb-xceiv.c Roger Quadros             2013-03-12  173  			dev_err(phy->dev, "Failed to disable power\n");
58f735fe4 drivers/usb/otg/nop-usb-xceiv.c Roger Quadros             2013-03-12  174  	}
2319fb88e drivers/usb/otg/nop-usb-xceiv.c Roger Quadros             2013-03-12  175  }
53b6fc28e drivers/usb/phy/phy-generic.c   Sebastian Andrzej Siewior 2013-07-30  176  EXPORT_SYMBOL_GPL(usb_gen_phy_shutdown);
2319fb88e drivers/usb/otg/nop-usb-xceiv.c Roger Quadros             2013-03-12  177  
41adf1093 drivers/usb/otg/nop-usb-xceiv.c Heikki Krogerus           2012-02-13  178  static int nop_set_peripheral(struct usb_otg *otg, struct usb_gadget *gadget)
f6d92a05c drivers/usb/otg/nop-usb-xceiv.c Ajay Kumar Gupta          2009-02-06  179  {
41adf1093 drivers/usb/otg/nop-usb-xceiv.c Heikki Krogerus           2012-02-13  180  	if (!otg)
f6d92a05c drivers/usb/otg/nop-usb-xceiv.c Ajay Kumar Gupta          2009-02-06  181  		return -ENODEV;
f6d92a05c drivers/usb/otg/nop-usb-xceiv.c Ajay Kumar Gupta          2009-02-06  182  
f6d92a05c drivers/usb/otg/nop-usb-xceiv.c Ajay Kumar Gupta          2009-02-06  183  	if (!gadget) {
41adf1093 drivers/usb/otg/nop-usb-xceiv.c Heikki Krogerus           2012-02-13  184  		otg->gadget = NULL;
f6d92a05c drivers/usb/otg/nop-usb-xceiv.c Ajay Kumar Gupta          2009-02-06  185  		return -ENODEV;
f6d92a05c drivers/usb/otg/nop-usb-xceiv.c Ajay Kumar Gupta          2009-02-06  186  	}
f6d92a05c drivers/usb/otg/nop-usb-xceiv.c Ajay Kumar Gupta          2009-02-06  187  
41adf1093 drivers/usb/otg/nop-usb-xceiv.c Heikki Krogerus           2012-02-13  188  	otg->gadget = gadget;
2eafe93b9 drivers/usb/phy/phy-generic.c   Maarten ter Huurne        2016-02-28  189  	if (otg->state == OTG_STATE_B_PERIPHERAL)
2eafe93b9 drivers/usb/phy/phy-generic.c   Maarten ter Huurne        2016-02-28 @190  		usb_gadget_vbus_connect(gadget);
2eafe93b9 drivers/usb/phy/phy-generic.c   Maarten ter Huurne        2016-02-28  191  	else
e47d92545 drivers/usb/phy/phy-generic.c   Antoine Tenart            2014-10-30  192  		otg->state = OTG_STATE_B_IDLE;
f6d92a05c drivers/usb/otg/nop-usb-xceiv.c Ajay Kumar Gupta          2009-02-06  193  	return 0;

:::::: The code at line 190 was first introduced by commit
:::::: 2eafe93b92921308b624466b4c8a99bd1ace6e4f usb: phy: generic: Handle late registration of gadget

:::::: TO: Maarten ter Huurne <maarten@xxxxxxxxxxxxxx>
:::::: CC: Felipe Balbi <balbi@xxxxxxxxxx>

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

Attachment: .config.gz
Description: Binary data


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux