From: kernel test robot <lkp@intel.com>
To: Jacob Keller <jacob.e.keller@intel.com>
Cc: oe-kbuild-all@lists.linux.dev,
Intel Wired LAN <intel-wired-lan@lists.osuosl.org>,
Tony Nguyen <anthony.l.nguyen@intel.com>
Subject: [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'?
Date: Thu, 29 Oct 2026 23:25:51 +0100 [thread overview]
Message-ID: <202610292344.LN4xt1gu-lkp@intel.com> (raw)
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
reply other threads:[~2026-10-29 22:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202610292344.LN4xt1gu-lkp@intel.com \
--to=lkp@intel.com \
--cc=anthony.l.nguyen@intel.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=jacob.e.keller@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox