drivers/net/ethernet/pensando/ionic/ionic_lif.c:2973: undefined reference to `ionic_lif_hwstamp_set'
From: kernel test robot
Date: Tue May 04 2021 - 04:21:24 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5e321ded302da4d8c5d5dd953423d9b748ab3775
commit: a8771bfe05549f3068532c60e3682441ff8159fd ionic: add and enable tx and rx timestamp handling
date: 4 weeks ago
config: x86_64-randconfig-a016-20210504 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a8771bfe05549f3068532c60e3682441ff8159fd
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout a8771bfe05549f3068532c60e3682441ff8159fd
# save the attached .config to linux build tree
make W=1 W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All errors (new ones prefixed by >>):
ld: drivers/net/ethernet/pensando/ionic/ionic_lif.o: in function `ionic_lif_free':
drivers/net/ethernet/pensando/ionic/ionic_lif.c:2996: undefined reference to `ionic_lif_free_phc'
ld: drivers/net/ethernet/pensando/ionic/ionic_lif.o: in function `ionic_lif_handle_fw_up':
>> drivers/net/ethernet/pensando/ionic/ionic_lif.c:2973: undefined reference to `ionic_lif_hwstamp_set'
ld: drivers/net/ethernet/pensando/ionic/ionic_lif.o: in function `ionic_lif_alloc':
drivers/net/ethernet/pensando/ionic/ionic_lif.c:2871: undefined reference to `ionic_lif_alloc_phc'
ld: drivers/net/ethernet/pensando/ionic/ionic_txrx.o: in function `ionic_rx_clean':
>> drivers/net/ethernet/pensando/ionic/ionic_txrx.c:312: undefined reference to `ionic_lif_phc_ktime'
ld: drivers/net/ethernet/pensando/ionic/ionic_txrx.o: in function `ionic_tx_clean':
drivers/net/ethernet/pensando/ionic/ionic_txrx.c:721: undefined reference to `ionic_lif_phc_ktime'
vim +2973 drivers/net/ethernet/pensando/ionic/ionic_lif.c
2928
2929 static void ionic_lif_handle_fw_up(struct ionic_lif *lif)
2930 {
2931 struct ionic *ionic = lif->ionic;
2932 int err;
2933
2934 if (!test_bit(IONIC_LIF_F_FW_RESET, lif->state))
2935 return;
2936
2937 dev_info(ionic->dev, "FW Up: restarting LIFs\n");
2938
2939 ionic_init_devinfo(ionic);
2940 err = ionic_identify(ionic);
2941 if (err)
2942 goto err_out;
2943 err = ionic_port_identify(ionic);
2944 if (err)
2945 goto err_out;
2946 err = ionic_port_init(ionic);
2947 if (err)
2948 goto err_out;
2949 err = ionic_qcqs_alloc(lif);
2950 if (err)
2951 goto err_out;
2952
2953 err = ionic_lif_init(lif);
2954 if (err)
2955 goto err_qcqs_free;
2956
2957 if (lif->registered)
2958 ionic_lif_set_netdev_info(lif);
2959
2960 ionic_rx_filter_replay(lif);
2961
2962 if (netif_running(lif->netdev)) {
2963 err = ionic_txrx_alloc(lif);
2964 if (err)
2965 goto err_lifs_deinit;
2966
2967 err = ionic_txrx_init(lif);
2968 if (err)
2969 goto err_txrx_free;
2970 }
2971
2972 /* restore the hardware timestamping queues */
> 2973 ionic_lif_hwstamp_set(lif, NULL);
2974
2975 clear_bit(IONIC_LIF_F_FW_RESET, lif->state);
2976 ionic_link_status_check_request(lif, CAN_SLEEP);
2977 netif_device_attach(lif->netdev);
2978 dev_info(ionic->dev, "FW Up: LIFs restarted\n");
2979
2980 return;
2981
2982 err_txrx_free:
2983 ionic_txrx_free(lif);
2984 err_lifs_deinit:
2985 ionic_lif_deinit(lif);
2986 err_qcqs_free:
2987 ionic_qcqs_free(lif);
2988 err_out:
2989 dev_err(ionic->dev, "FW Up: LIFs restart failed - err %d\n", err);
2990 }
2991
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip