All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Simei Su <simei.su@intel.com>
Cc: Wojciech Drewek <wojciech.drewek@intel.com>,
	llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Tony Nguyen <anthony.l.nguyen@intel.com>,
	Mateusz Polchlopek <mateusz.polchlopek@intel.com>,
	Intel Wired LAN <intel-wired-lan@lists.osuosl.org>
Subject: [Intel-wired-lan] [tnguy-next-queue:dev-queue 49/85] drivers/net/ethernet/intel/ice/ice_virtchnl.c:3851:19: error: call to undeclared function 'ice_ptp_read_src_clk_reg'; ISO C99 and later do not support implicit function declarations
Date: Thu, 13 Jun 2024 11:23:02 +0800	[thread overview]
Message-ID: <202406131123.jE3mwlmL-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git dev-queue
head:   9af9f19ba76127f423f1b2cbe41b3cc098f0f5d4
commit: f3b2d0b0778285c46d451413fb4d5e67b85ee8fd [49/85] ice: support Rx timestamp on flex descriptor
config: x86_64-randconfig-071-20240613 (https://download.01.org/0day-ci/archive/20240613/202406131123.jE3mwlmL-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240613/202406131123.jE3mwlmL-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202406131123.jE3mwlmL-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/net/ethernet/intel/ice/ice_virtchnl.c:3851:19: error: call to undeclared function 'ice_ptp_read_src_clk_reg'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    3851 |         phc_time->time = ice_ptp_read_src_clk_reg(pf, NULL);
         |                          ^
   1 error generated.


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

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Simei Su <simei.su@intel.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
	Intel Wired LAN <intel-wired-lan@lists.osuosl.org>,
	Tony Nguyen <anthony.l.nguyen@intel.com>,
	Wojciech Drewek <wojciech.drewek@intel.com>,
	Mateusz Polchlopek <mateusz.polchlopek@intel.com>
Subject: [tnguy-next-queue:dev-queue 49/85] drivers/net/ethernet/intel/ice/ice_virtchnl.c:3851:19: error: call to undeclared function 'ice_ptp_read_src_clk_reg'; ISO C99 and later do not support implicit function declarations
Date: Thu, 13 Jun 2024 11:23:02 +0800	[thread overview]
Message-ID: <202406131123.jE3mwlmL-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git dev-queue
head:   9af9f19ba76127f423f1b2cbe41b3cc098f0f5d4
commit: f3b2d0b0778285c46d451413fb4d5e67b85ee8fd [49/85] ice: support Rx timestamp on flex descriptor
config: x86_64-randconfig-071-20240613 (https://download.01.org/0day-ci/archive/20240613/202406131123.jE3mwlmL-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240613/202406131123.jE3mwlmL-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202406131123.jE3mwlmL-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/net/ethernet/intel/ice/ice_virtchnl.c:3851:19: error: call to undeclared function 'ice_ptp_read_src_clk_reg'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    3851 |         phc_time->time = ice_ptp_read_src_clk_reg(pf, NULL);
         |                          ^
   1 error generated.


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

             reply	other threads:[~2024-06-13  3:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-13  3:23 kernel test robot [this message]
2024-06-13  3:23 ` [tnguy-next-queue:dev-queue 49/85] drivers/net/ethernet/intel/ice/ice_virtchnl.c:3851:19: error: call to undeclared function 'ice_ptp_read_src_clk_reg'; ISO C99 and later do not support implicit function declarations kernel test robot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202406131123.jE3mwlmL-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=anthony.l.nguyen@intel.com \
    --cc=intel-wired-lan@lists.osuosl.org \
    --cc=llvm@lists.linux.dev \
    --cc=mateusz.polchlopek@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=simei.su@intel.com \
    --cc=wojciech.drewek@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.