otg_fsm.c:undefined reference to `usb_gadget_vbus_connect'

From: kernel test robot
Date: Tue Mar 09 2021 - 09:37:24 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 144c79ef33536b4ecb4951e07dbc1f2b7fa99d32
commit: c3590c7656fb103db193e3538cb52b420985482c usb: host: ehci-tegra: Remove the driver
date: 8 weeks ago
config: arm64-randconfig-s031-20210309 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.3-262-g5e674421-dirty
# 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 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' 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+0x4f8): undefined reference to `usb_gadget_vbus_disconnect'
aarch64-linux-ld: otg.c:(.text+0x508): undefined reference to `usb_gadget_vbus_connect'
aarch64-linux-ld: drivers/usb/chipidea/otg.o: in function `ci_otg_work':
otg.c:(.text+0x78c): undefined reference to `usb_gadget_vbus_disconnect'
aarch64-linux-ld: drivers/usb/chipidea/otg_fsm.o: in function `ci_otg_start_gadget':
>> otg_fsm.c:(.text+0x7a0): undefined reference to `usb_gadget_vbus_connect'
>> aarch64-linux-ld: otg_fsm.c:(.text+0x7c0): 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