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: loongarch-defconfig (https://download.01.org/0day-ci/archive/20261103/[email protected]/config) compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 65303e81f481bbfe386b8596423f94c43198ba94) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261103/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ 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 <[email protected]> :::::: CC: Tony Nguyen <[email protected]> -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
