tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: f8f60f322f0640c8edda2942ca5f84b7a27c417a commit: 6c6fa1a00ad3df994c96af9468cc83f225df9df4 [4179/7443] net: ethernet: renesas: rswitch: Add R-Car Gen4 gPTP support config: loongarch-randconfig-r011-20221113 compiler: loongarch64-linux-gcc (GCC) 12.1.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://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=6c6fa1a00ad3df994c96af9468cc83f225df9df4 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 6c6fa1a00ad3df994c96af9468cc83f225df9df4 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=loongarch SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): loongarch64-linux-ld: drivers/net/ethernet/renesas/rswitch.o: in function `rswitch_get_ts_info': >> drivers/net/ethernet/renesas/rswitch.c:1544: undefined reference to `ptp_clock_index' loongarch64-linux-ld: drivers/net/ethernet/renesas/rcar_gen4_ptp.o: in function `rcar_gen4_ptp_register': >> drivers/net/ethernet/renesas/rcar_gen4_ptp.c:153: undefined reference to `ptp_clock_register' loongarch64-linux-ld: drivers/net/ethernet/renesas/rcar_gen4_ptp.o: in function `rcar_gen4_ptp_unregister': >> drivers/net/ethernet/renesas/rcar_gen4_ptp.c:167: undefined reference to `ptp_clock_unregister' vim +1544 drivers/net/ethernet/renesas/rswitch.c 1539 1540 static int rswitch_get_ts_info(struct net_device *ndev, struct ethtool_ts_info *info) 1541 { 1542 struct rswitch_device *rdev = netdev_priv(ndev); 1543 > 1544 info->phc_index = ptp_clock_index(rdev->priv->ptp_priv->clock); 1545 info->so_timestamping = SOF_TIMESTAMPING_TX_SOFTWARE | 1546 SOF_TIMESTAMPING_RX_SOFTWARE | 1547 SOF_TIMESTAMPING_SOFTWARE | 1548 SOF_TIMESTAMPING_TX_HARDWARE | 1549 SOF_TIMESTAMPING_RX_HARDWARE | 1550 SOF_TIMESTAMPING_RAW_HARDWARE; 1551 info->tx_types = BIT(HWTSTAMP_TX_OFF) | BIT(HWTSTAMP_TX_ON); 1552 info->rx_filters = BIT(HWTSTAMP_FILTER_NONE) | BIT(HWTSTAMP_FILTER_ALL); 1553 1554 return 0; 1555 } 1556 -- 0-DAY CI Kernel Test Service https://01.org/lkp