All of lore.kernel.org
 help / color / mirror / Atom feed
* [tnguy-net-queue:100GbE_E825_timecounter 14/15] drivers/net/ethernet/intel/ice/ice_ptp.c:2366:32: error: 'cached_time' undeclared; did you mean 'cache_type'?
@ 2026-10-29 22:25 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-29 22:25 UTC (permalink / raw)
  To: Jacob Keller; +Cc: oe-kbuild-all, Intel Wired LAN, Tony Nguyen

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/net-queue.git 100GbE_E825_timecounter
head:   3f3ca43bb77f800814e88fc923238ad0a122d79f
commit: a1bbd79fcdadf25fd90973f46fe35f9461d04a8c [14/15] ice: store cached PHC time in ice_adapter
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20261029/202610292344.LN4xt1gu-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261029/202610292344.LN4xt1gu-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/202610292344.LN4xt1gu-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/net/ethernet/intel/ice/ice_ptp.c:9:
   drivers/net/ethernet/intel/ice/ice_ptp.c: In function 'ice_ptp_get_rx_hwts':
>> drivers/net/ethernet/intel/ice/ice_ptp.c:2366:32: error: 'cached_time' undeclared (first use in this function); did you mean 'cache_type'?
    2366 |         ice_trace(rx_hwtstamp, cached_time, ts_high, ts_ns);
         |                                ^~~~~~~~~~~
   drivers/net/ethernet/intel/ice/ice_trace.h:49:67: note: in definition of macro 'ice_trace'
      49 | #define ice_trace(trace_name, args...) ICE_TRACE_NAME(trace_name)(args)
         |                                                                   ^~~~
   drivers/net/ethernet/intel/ice/ice_ptp.c:2366:32: note: each undeclared identifier is reported only once for each function it appears in
    2366 |         ice_trace(rx_hwtstamp, cached_time, ts_high, ts_ns);
         |                                ^~~~~~~~~~~
   drivers/net/ethernet/intel/ice/ice_trace.h:49:67: note: in definition of macro 'ice_trace'
      49 | #define ice_trace(trace_name, args...) ICE_TRACE_NAME(trace_name)(args)
         |                                                                   ^~~~


vim +2366 drivers/net/ethernet/intel/ice/ice_ptp.c

77a781155a65905 Jacob Keller     2021-06-09  2340  
77a781155a65905 Jacob Keller     2021-06-09  2341  /**
3310aad20defb96 Larysa Zaremba   2023-12-05  2342   * ice_ptp_get_rx_hwts - Get packet Rx timestamp in ns
77a781155a65905 Jacob Keller     2021-06-09  2343   * @rx_desc: Receive descriptor
9031d5f491b9571 Larysa Zaremba   2023-12-05  2344   * @pkt_ctx: Packet context to get the cached time
77a781155a65905 Jacob Keller     2021-06-09  2345   *
77a781155a65905 Jacob Keller     2021-06-09  2346   * The driver receives a notification in the receive descriptor with timestamp.
77a781155a65905 Jacob Keller     2021-06-09  2347   */
3310aad20defb96 Larysa Zaremba   2023-12-05  2348  u64 ice_ptp_get_rx_hwts(const union ice_32b_rx_flex_desc *rx_desc,
9031d5f491b9571 Larysa Zaremba   2023-12-05  2349  			const struct ice_pkt_ctx *pkt_ctx)
77a781155a65905 Jacob Keller     2021-06-09  2350  {
77a781155a65905 Jacob Keller     2021-06-09  2351  	u32 ts_high;
a1bbd79fcdadf25 Jacob Keller     2026-10-21  2352  	u64 ts_ns;
77a781155a65905 Jacob Keller     2021-06-09  2353  
b1a582e64bf2229 Jacob Keller     2022-07-27  2354  	if (!(rx_desc->wb.time_stamp_low & ICE_PTP_TS_VALID))
3310aad20defb96 Larysa Zaremba   2023-12-05  2355  		return 0;
b1a582e64bf2229 Jacob Keller     2022-07-27  2356  
b1a582e64bf2229 Jacob Keller     2022-07-27  2357  	/* Use ice_ptp_extend_32b_ts directly, using the ring-specific cached
b1a582e64bf2229 Jacob Keller     2022-07-27  2358  	 * PHC value, rather than accessing the PF. This also allows us to
b1a582e64bf2229 Jacob Keller     2022-07-27  2359  	 * simply pass the upper 32bits of nanoseconds directly. Calling
b1a582e64bf2229 Jacob Keller     2022-07-27  2360  	 * ice_ptp_extend_40b_ts is unnecessary as it would just discard these
b1a582e64bf2229 Jacob Keller     2022-07-27  2361  	 * bits itself.
77a781155a65905 Jacob Keller     2021-06-09  2362  	 */
77a781155a65905 Jacob Keller     2021-06-09  2363  	ts_high = le32_to_cpu(rx_desc->wb.flex_ts.ts_high);
a1bbd79fcdadf25 Jacob Keller     2026-10-21  2364  	ts_ns = ice_ptp_extend_32b_ts(pkt_ctx->phc, ts_high);
77a781155a65905 Jacob Keller     2021-06-09  2365  
5443362bae71a77 Przemyslaw Korba 2026-05-11 @2366  	ice_trace(rx_hwtstamp, cached_time, ts_high, ts_ns);
5443362bae71a77 Przemyslaw Korba 2026-05-11  2367  
3310aad20defb96 Larysa Zaremba   2023-12-05  2368  	return ts_ns;
77a781155a65905 Jacob Keller     2021-06-09  2369  }
77a781155a65905 Jacob Keller     2021-06-09  2370  

:::::: The code at line 2366 was first introduced by commit
:::::: 5443362bae71a77a7bf37467cef3be608ce32783 ice: add rx timestamp tracepoint for debugging

:::::: TO: Przemyslaw Korba <przemyslaw.korba@intel.com>
:::::: CC: Tony Nguyen <anthony.l.nguyen@intel.com>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-29 22:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-29 22:25 [tnguy-net-queue:100GbE_E825_timecounter 14/15] drivers/net/ethernet/intel/ice/ice_ptp.c:2366:32: error: 'cached_time' undeclared; did you mean 'cache_type'? kernel test robot

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.