[Intel-wired-lan] [tnguy-next-queue:dev-queue 70/81] drivers/net/ethernet/intel/ice/ice_virtchnl.c:3851:26: error: implicit declaration of function 'ice_ptp_read_src_clk_reg'
kernel test robot
lkp at intel.com
Fri Jun 7 00:03:52 UTC 2024
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git dev-queue
head: ace679d6a9e3623d89804105baaca54d4e5e9c49
commit: c3bafac0365a81a223dff3ca0a68665926ef077d [70/81] ice: support Rx timestamp on flex descriptor
config: arm-randconfig-004-20240607 (https://download.01.org/0day-ci/archive/20240607/202406070705.6IjwhIMk-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240607/202406070705.6IjwhIMk-lkp@intel.com/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 <lkp at intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202406070705.6IjwhIMk-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/net/ethernet/intel/ice/ice_virtchnl.c: In function 'ice_vc_get_phc_time':
>> drivers/net/ethernet/intel/ice/ice_virtchnl.c:3851:26: error: implicit declaration of function 'ice_ptp_read_src_clk_reg' [-Werror=implicit-function-declaration]
3851 | phc_time->time = ice_ptp_read_src_clk_reg(pf, NULL);
| ^~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/ice_ptp_read_src_clk_reg +3851 drivers/net/ethernet/intel/ice/ice_virtchnl.c
3829
3830 static int ice_vc_get_phc_time(struct ice_vf *vf)
3831 {
3832 enum virtchnl_status_code v_ret = VIRTCHNL_STATUS_SUCCESS;
3833 struct virtchnl_phc_time *phc_time = NULL;
3834 struct ice_pf *pf = vf->pf;
3835 int len = 0;
3836 int ret;
3837
3838 if (!test_bit(ICE_VF_STATE_ACTIVE, vf->vf_states)) {
3839 v_ret = VIRTCHNL_STATUS_ERR_PARAM;
3840 goto err;
3841 }
3842
3843 len = sizeof(struct virtchnl_phc_time);
3844 phc_time = kzalloc(len, GFP_KERNEL);
3845 if (!phc_time) {
3846 v_ret = VIRTCHNL_STATUS_ERR_NO_MEMORY;
3847 len = 0;
3848 goto err;
3849 }
3850
> 3851 phc_time->time = ice_ptp_read_src_clk_reg(pf, NULL);
3852
3853 err:
3854 /* send the response back to the VF */
3855 ret = ice_vc_send_msg_to_vf(vf, VIRTCHNL_OP_1588_PTP_GET_TIME,
3856 v_ret, (u8 *)phc_time, len);
3857 kfree(phc_time);
3858 return ret;
3859 }
3860
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
More information about the Intel-wired-lan
mailing list