otg.c:undefined reference to `usb_gadget_vbus_disconnect'

From: kernel test robot
Date: Mon Mar 01 2021 - 05:57:05 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fe07bfda2fb9cdef8a4d4008a409bb02f35f1bd8
commit: c3590c7656fb103db193e3538cb52b420985482c usb: host: ehci-tegra: Remove the driver
date: 7 weeks ago
config: arm64-randconfig-c004-20210301 (attached as .config)
compiler: aarch64-linux-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=c3590c7656fb103db193e3538cb52b420985482c
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout c3590c7656fb103db193e3538cb52b420985482c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm64

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

aarch64-linux-ld: Unexpected GOT/PLT entries detected!
aarch64-linux-ld: Unexpected run-time procedure linkages detected!
aarch64-linux-ld: drivers/usb/chipidea/otg.o: in function `ci_handle_vbus_change':
>> otg.c:(.text+0x258): undefined reference to `usb_gadget_vbus_disconnect'
>> aarch64-linux-ld: otg.c:(.text+0x268): undefined reference to `usb_gadget_vbus_connect'
aarch64-linux-ld: drivers/usb/chipidea/otg.o: in function `ci_otg_work':
otg.c:(.text+0x42c): undefined reference to `usb_gadget_vbus_disconnect'

Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for USB_CHIPIDEA
Depends on USB_SUPPORT && (USB_EHCI_HCD && USB_GADGET || USB_EHCI_HCD && !USB_GADGET || !USB_EHCI_HCD && USB_GADGET && HAS_DMA
Selected by
- USB_EHCI_TEGRA && USB_SUPPORT && USB && USB_EHCI_HCD && ARCH_TEGRA

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip