drivers/phy/realtek/phy-rtk-usb2.c:715: undefined reference to `usb_debug_root'
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next head: ba0b3af706305e5b11fd832eecd2c4a7fce57156 commit: 134e6d25f6bd06071e5aac0a7eefcea6f7713955 [26/67] phy: realtek: usb: Add driver for the Realtek SoC USB 2.0 PHY config: openrisc-randconfig-r005-20230728 (https://download.01.org/0day-ci/archive/20230729/[email protected]/config) compiler: or1k-linux-gcc (GCC) 12.3.0 reproduce: (https://download.01.org/0day-ci/archive/20230729/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
or1k-linux-ld: drivers/phy/realtek/phy-rtk-usb2.o: in function `create_phy_debug_root':
>> drivers/phy/realtek/phy-rtk-usb2.c:715: undefined reference to `usb_debug_root' >> or1k-linux-ld: drivers/phy/realtek/phy-rtk-usb2.c:715: undefined reference to `usb_debug_root'
or1k-linux-ld: drivers/phy/realtek/phy-rtk-usb2.c:717: undefined reference to `usb_debug_root'
pahole: .tmp_vmlinux.btf: Invalid argument
.btf.vmlinux.bin.o: file not recognized: file format not recognized
vim +715 drivers/phy/realtek/phy-rtk-usb2.c
709
710 #ifdef CONFIG_DEBUG_FS
711 static struct dentry *create_phy_debug_root(void)
712 {
713 struct dentry *phy_debug_root;
714
> 715 phy_debug_root = debugfs_lookup("phy", usb_debug_root); 716 if (!phy_debug_root)
717 phy_debug_root = debugfs_create_dir("phy", usb_debug_root);
718
719 return phy_debug_root;
720 }
721
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Quoted 5 lines
All errors (new ones prefixed by >>):
or1k-linux-ld:
drivers/phy/realtek/phy-rtk-usb2.o: in function
`create_phy_debug_root':
Quoted 9 lines
Quoted 1 line
Quoted 1 line
drivers/phy/realtek/phy-rtk-usb2.c:715: undefined reference to`usb_debug_root'
Quoted 1 line
Quoted 1 line
or1k-linux-ld:
drivers/phy/realtek/phy-rtk-usb2.c:715: undefined referenceto `usb_debug_root'
or1k-linux-ld:drivers/phy/realtek/phy-rtk-usb2.c:717: undefined reference
to `usb_debug_root'
pahole: .tmp_vmlinux.btf: Invalid argument
.btf.vmlinux.bin.o: file not recognized: file format not recognized
I have submit a fix patch at https://lore.kernel.org/linux-usb/[email protected]/
Thanks,
Stanley