Skip to contentSkip to conversation

drivers/phy/realtek/phy-rtk-usb3.c:349: undefined reference to `usb_debug_root'

PATCH kernel test robot 2 participants 2 messages Jul 29, 2023 USB

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next
head:   ba0b3af706305e5b11fd832eecd2c4a7fce57156
commit: adda6e82a7de7d6d478f6c8ef127f0ac51c510a1 [27/67] phy: realtek: usb: Add driver for the Realtek SoC USB 3.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'
or1k-linux-ld: drivers/phy/realtek/phy-rtk-usb3.o: in function `create_phy_debug_root':

>> drivers/phy/realtek/phy-rtk-usb3.c:349: undefined reference to `usb_debug_root'
>> or1k-linux-ld: drivers/phy/realtek/phy-rtk-usb3.c:349: undefined reference to `usb_debug_root'

or1k-linux-ld: drivers/phy/realtek/phy-rtk-usb3.o:drivers/phy/realtek/phy-rtk-usb3.c:351: more undefined references to `usb_debug_root' follow
pahole: .tmp_vmlinux.btf: Invalid argument
.btf.vmlinux.bin.o: file not recognized: file format not recognized

vim +349 drivers/phy/realtek/phy-rtk-usb3.c

343
344 #ifdef CONFIG_DEBUG_FS
345 static struct dentry *create_phy_debug_root(void)
346 {
347 struct dentry *phy_debug_root;
348

 > 349		phy_debug_root = debugfs_lookup("phy", usb_debug_root);

350 if (!phy_debug_root)
351 phy_debug_root = debugfs_create_dir("phy", usb_debug_root);
352
353 return phy_debug_root;
354 }
355

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
#1 lore raw
Quoted 14 lines

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'
or1k-linux-ld: drivers/phy/realtek/phy-rtk-usb3.o: in function
`create_phy_debug_root':

Quoted 1 line
Quoted 1 line

drivers/phy/realtek/phy-rtk-usb3.c:349: undefined reference to

Quoted 8 lines

`usb_debug_root'

Quoted 1 line
Quoted 1 line

or1k-linux-ld: drivers/phy/realtek/phy-rtk-usb3.c:349: undefined reference

to `usb_debug_root'
or1k-linux-ld:
drivers/phy/realtek/phy-rtk-usb3.o:drivers/phy/realtek/phy-rtk-usb3.c:351:
more undefined references to `usb_debug_root' follow
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