[PATCH v2 3/4] riscv: select vitesse phy driver for polarfire soc

kernel test robot lkp at intel.com
Thu Apr 21 18:29:42 PDT 2022


Hi Conor,

I love your patch! Yet something to improve:

[auto build test ERROR on linus/master]
[also build test ERROR on v5.18-rc3 next-20220421]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/intel-lab-lkp/linux/commits/Conor-Dooley/polarfire-soc-kconfig-maintainers-updates/20220421-172138
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git b253435746d9a4a701b5f09211b9c14d3370d0da
config: riscv-randconfig-r005-20220420 (https://download.01.org/0day-ci/archive/20220422/202204220928.KoW0NzCu-lkp@intel.com/config)
compiler: riscv64-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/intel-lab-lkp/linux/commit/dc055eafe9cad74b3b01bed537c6f1496cddabe4
        git remote add linux-review https://github.com/intel-lab-lkp/linux
        git fetch --no-tags linux-review Conor-Dooley/polarfire-soc-kconfig-maintainers-updates/20220421-172138
        git checkout dc055eafe9cad74b3b01bed537c6f1496cddabe4
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross W=1 O=build_dir ARCH=riscv SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp at intel.com>

All errors (new ones prefixed by >>):

   init/main.o: in function `initcall_blacklisted':
   main.c:(.text+0x4): relocation truncated to fit: R_RISCV_HI20 against `.LANCHOR0'
   init/main.o: in function `set_reset_devices':
   main.c:(.init.text+0x0): relocation truncated to fit: R_RISCV_HI20 against symbol `reset_devices' defined in .sbss section in init/main.o
   init/main.o: in function `run_init_process':
   main.c:(.text.unlikely+0x4): relocation truncated to fit: R_RISCV_HI20 against `.LANCHOR0'
   init/main.o: in function `rest_init':
   (.ref.text+0x10): relocation truncated to fit: R_RISCV_HI20 against `kernel_init'
   init/do_mounts.o: in function `rootfs_init_fs_context':
   do_mounts.c:(.text+0x4): relocation truncated to fit: R_RISCV_HI20 against `.LC1'
   init/do_mounts.o: in function `.L6':
   do_mounts.c:(.init.text+0x48): relocation truncated to fit: R_RISCV_HI20 against `root_wait'
   init/do_mounts_initrd.o: in function `no_initrd':
   do_mounts_initrd.c:(.init.text+0x0): relocation truncated to fit: R_RISCV_HI20 against `.LANCHOR0'
   init/initramfs.o: in function `wait_for_initramfs':
   (.text+0x0): relocation truncated to fit: R_RISCV_HI20 against `initramfs_cookie'
   init/initramfs.o: in function `error':
   initramfs.c:(.init.text+0x0): relocation truncated to fit: R_RISCV_HI20 against `.LANCHOR0'
   init/calibrate.o: in function `read_current_timer.isra.0':
   calibrate.c:(.text+0x0): relocation truncated to fit: R_RISCV_HI20 against symbol `clint_time_val' defined in .sbss section in drivers/clocksource/timer-clint.o
   init/calibrate.o: in function `lpj_setup':
   calibrate.c:(.init.text+0x12): additional relocation overflows omitted from the output
   riscv64-linux-ld: drivers/net/phy/vitesse.o: in function `phy_write':
   vitesse.c:(.text+0x10): undefined reference to `mdiobus_write'
   riscv64-linux-ld: drivers/net/phy/vitesse.o: in function `vsc73xx_config_init':
   vitesse.c:(.text+0x3e): undefined reference to `phy_modify'
   riscv64-linux-ld: vitesse.c:(.text+0x64): undefined reference to `phy_modify'
   riscv64-linux-ld: drivers/net/phy/vitesse.o: in function `vsc739x_config_init':
   vitesse.c:(.text+0x8e): undefined reference to `phy_modify'
   riscv64-linux-ld: vitesse.c:(.text+0xbe): undefined reference to `phy_modify'
   riscv64-linux-ld: vitesse.c:(.text+0xd2): undefined reference to `phy_modify'
   riscv64-linux-ld: drivers/net/phy/vitesse.o:vitesse.c:(.text+0xfe): more undefined references to `phy_modify' follow
   riscv64-linux-ld: drivers/net/phy/vitesse.o: in function `vsc739x_config_init':
   vitesse.c:(.text+0x19e): undefined reference to `mdiobus_read'
   riscv64-linux-ld: vitesse.c:(.text+0x1d0): undefined reference to `phy_modify'
   riscv64-linux-ld: drivers/net/phy/vitesse.o: in function `vsc738x_config_init':
   vitesse.c:(.text+0x200): undefined reference to `phy_modify'
   riscv64-linux-ld: vitesse.c:(.text+0x214): undefined reference to `phy_modify'
   riscv64-linux-ld: vitesse.c:(.text+0x240): undefined reference to `phy_modify'
   riscv64-linux-ld: vitesse.c:(.text+0x278): undefined reference to `phy_modify'
   riscv64-linux-ld: drivers/net/phy/vitesse.o:vitesse.c:(.text+0x2f4): more undefined references to `phy_modify' follow
   riscv64-linux-ld: drivers/net/phy/vitesse.o: in function `vsc738x_config_init':
>> vitesse.c:(.text+0x46a): undefined reference to `phy_error'
   riscv64-linux-ld: drivers/net/phy/vitesse.o: in function `vsc824x_config_init':
   vitesse.c:(.text+0x48e): undefined reference to `phy_trigger_machine'
   riscv64-linux-ld: drivers/net/phy/vitesse.o: in function `vsc8601_config_init':
   vitesse.c:(.text+0x584): undefined reference to `genphy_setup_forced'
   riscv64-linux-ld: drivers/net/phy/vitesse.o: in function `vsc82x4_config_aneg':
   vitesse.c:(.text+0x636): undefined reference to `__genphy_config_aneg'
>> riscv64-linux-ld: vitesse.c:(.text+0x652): undefined reference to `__mdiobus_write'
>> riscv64-linux-ld: vitesse.c:(.text+0x664): undefined reference to `__mdiobus_read'

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for VITESSE_PHY
   Depends on NETDEVICES && PHYLIB
   Selected by
   - SOC_MICROCHIP_POLARFIRE

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp



More information about the linux-riscv mailing list