[asahilinux:sven/20210829 13/13] phy-apple.c:undefined reference to `usb_remove_phy'

From: kernel test robot
Date: Sun Aug 29 2021 - 20:55:23 EST


tree: https://github.com/AsahiLinux/linux sven/20210829
head: 6db7d21b57b368ce4c62e201bded63d43b5940f9
commit: 6db7d21b57b368ce4c62e201bded63d43b5940f9 [13/13] WIP: phy: apple: Add Apple PHY driver
config: arm64-randconfig-r022-20210830 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 11.2.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://github.com/AsahiLinux/linux/commit/6db7d21b57b368ce4c62e201bded63d43b5940f9
git remote add asahilinux https://github.com/AsahiLinux/linux
git fetch --no-tags asahilinux sven/20210829
git checkout 6db7d21b57b368ce4c62e201bded63d43b5940f9
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm64 SHELL=/bin/bash

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/phy/phy-apple.o: in function `apple_phy_remove':
>> phy-apple.c:(.text+0x28): undefined reference to `usb_remove_phy'
aarch64-linux-ld: drivers/phy/phy-apple.o: in function `apple_phy_probe':
>> phy-apple.c:(.text+0x180): undefined reference to `usb_add_phy_dev'
aarch64-linux-ld: drivers/power/supply/wm831x_power.o: in function `wm831x_power_probe':
>> wm831x_power.c:(.text+0xc0c): undefined reference to `devm_usb_get_phy_by_phandle'
aarch64-linux-ld: drivers/power/supply/rt9455_charger.o: in function `rt9455_probe':
rt9455_charger.c:(.text+0x1114): undefined reference to `devm_usb_get_phy'
aarch64-linux-ld: drivers/power/supply/bq25890_charger.o: in function `bq25890_probe':
bq25890_charger.c:(.text+0xba8): undefined reference to `devm_usb_get_phy'
aarch64-linux-ld: drivers/power/supply/bq256xx_charger.o: in function `bq256xx_probe':
bq256xx_charger.c:(.text+0x14e4): undefined reference to `devm_usb_get_phy'
>> aarch64-linux-ld: bq256xx_charger.c:(.text+0x156c): undefined reference to `devm_usb_get_phy'

Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for USB_PHY
Depends on USB_SUPPORT
Selected by
- PHY_APPLE && ARCH_APPLE && (ARM64 || COMPILE_TEST

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

Attachment: .config.gz
Description: application/gzip