* [tnguy-net-queue:100GbE_E825_timecounter 14/15] drivers/net/ethernet/intel/ice/ice_ptp.c:2366:25: error: use of undeclared identifier 'cached_time'
@ 2026-10-29 23:28 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-29 23:28 UTC (permalink / raw)
To: Jacob Keller; +Cc: llvm, 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-rust (https://download.01.org/0day-ci/archive/20261030/202610300044.0bHmTu2J-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
rustc: rustc 1.96.0 (ac68faa20 2026-05-25)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261030/202610300044.0bHmTu2J-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/202610300044.0bHmTu2J-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/net/ethernet/intel/ice/ice_ptp.c:2366:25: error: use of undeclared identifier 'cached_time'
2366 | ice_trace(rx_hwtstamp, cached_time, ts_high, ts_ns);
| ^~~~~~~~~~~
1 error generated.
vim +/cached_time +2366 drivers/net/ethernet/intel/ice/ice_ptp.c
77a781155a6590 Jacob Keller 2021-06-09 2340
77a781155a6590 Jacob Keller 2021-06-09 2341 /**
3310aad20defb9 Larysa Zaremba 2023-12-05 2342 * ice_ptp_get_rx_hwts - Get packet Rx timestamp in ns
77a781155a6590 Jacob Keller 2021-06-09 2343 * @rx_desc: Receive descriptor
9031d5f491b957 Larysa Zaremba 2023-12-05 2344 * @pkt_ctx: Packet context to get the cached time
77a781155a6590 Jacob Keller 2021-06-09 2345 *
77a781155a6590 Jacob Keller 2021-06-09 2346 * The driver receives a notification in the receive descriptor with timestamp.
77a781155a6590 Jacob Keller 2021-06-09 2347 */
3310aad20defb9 Larysa Zaremba 2023-12-05 2348 u64 ice_ptp_get_rx_hwts(const union ice_32b_rx_flex_desc *rx_desc,
9031d5f491b957 Larysa Zaremba 2023-12-05 2349 const struct ice_pkt_ctx *pkt_ctx)
77a781155a6590 Jacob Keller 2021-06-09 2350 {
77a781155a6590 Jacob Keller 2021-06-09 2351 u32 ts_high;
a1bbd79fcdadf2 Jacob Keller 2026-10-21 2352 u64 ts_ns;
77a781155a6590 Jacob Keller 2021-06-09 2353
b1a582e64bf222 Jacob Keller 2022-07-27 2354 if (!(rx_desc->wb.time_stamp_low & ICE_PTP_TS_VALID))
3310aad20defb9 Larysa Zaremba 2023-12-05 2355 return 0;
b1a582e64bf222 Jacob Keller 2022-07-27 2356
b1a582e64bf222 Jacob Keller 2022-07-27 2357 /* Use ice_ptp_extend_32b_ts directly, using the ring-specific cached
b1a582e64bf222 Jacob Keller 2022-07-27 2358 * PHC value, rather than accessing the PF. This also allows us to
b1a582e64bf222 Jacob Keller 2022-07-27 2359 * simply pass the upper 32bits of nanoseconds directly. Calling
b1a582e64bf222 Jacob Keller 2022-07-27 2360 * ice_ptp_extend_40b_ts is unnecessary as it would just discard these
b1a582e64bf222 Jacob Keller 2022-07-27 2361 * bits itself.
77a781155a6590 Jacob Keller 2021-06-09 2362 */
77a781155a6590 Jacob Keller 2021-06-09 2363 ts_high = le32_to_cpu(rx_desc->wb.flex_ts.ts_high);
a1bbd79fcdadf2 Jacob Keller 2026-10-21 2364 ts_ns = ice_ptp_extend_32b_ts(pkt_ctx->phc, ts_high);
77a781155a6590 Jacob Keller 2021-06-09 2365
5443362bae71a7 Przemyslaw Korba 2026-05-11 @2366 ice_trace(rx_hwtstamp, cached_time, ts_high, ts_ns);
5443362bae71a7 Przemyslaw Korba 2026-05-11 2367
3310aad20defb9 Larysa Zaremba 2023-12-05 2368 return ts_ns;
77a781155a6590 Jacob Keller 2021-06-09 2369 }
77a781155a6590 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 23:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-29 23:28 [tnguy-net-queue:100GbE_E825_timecounter 14/15] drivers/net/ethernet/intel/ice/ice_ptp.c:2366:25: error: use of undeclared identifier 'cached_time' 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.