From: kernel test robot <lkp@intel.com>
To: lakshmi.sowjanya.d@intel.com, tglx@linutronix.de,
jstultz@google.com, giometti@enneenne.com, corbet@lwn.net,
linux-kernel@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev, christopher.s.hall@intel.com,
subramanian.mohan@intel.com, lakshmi.sowjanya.d@intel.com,
linux-doc@vger.kernel.org, netdev@vger.kernel.org,
pandith.n@intel.com, x86@kernel.org, eddie.dong@intel.com,
linux-sound@vger.kernel.org, alexandre.torgue@foss.st.com,
peter.hilber@opensynergy.com, joabreu@synopsys.com,
intel-wired-lan@lists.osuosl.org, mcoquelin.stm32@gmail.com,
thejesh.reddy.t.r@intel.com, perex@perex.cz,
anthony.l.nguyen@intel.com, andriy.shevchenko@linux.intel.com,
davem@davemloft.net
Subject: Re: [Intel-wired-lan] [PATCH v7 09/12] timekeeping: Add function to convert realtime to base clock
Date: Wed, 1 May 2024 00:27:54 +0800 [thread overview]
Message-ID: <202405010052.Cxh2bazm-lkp@intel.com> (raw)
In-Reply-To: <20240430085225.18086-10-lakshmi.sowjanya.d@intel.com>
Hi,
kernel test robot noticed the following build warnings:
[auto build test WARNING on tip/timers/core]
[also build test WARNING on tnguy-next-queue/dev-queue tnguy-net-queue/dev-queue linus/master v6.9-rc6 next-20240430]
[cannot apply to tip/x86/core]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/lakshmi-sowjanya-d-intel-com/timekeeping-Add-base-clock-properties-in-clocksource-structure/20240430-165602
base: tip/timers/core
patch link: https://lore.kernel.org/r/20240430085225.18086-10-lakshmi.sowjanya.d%40intel.com
patch subject: [Intel-wired-lan] [PATCH v7 09/12] timekeeping: Add function to convert realtime to base clock
config: openrisc-defconfig (https://download.01.org/0day-ci/archive/20240501/202405010052.Cxh2bazm-lkp@intel.com/config)
compiler: or1k-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240501/202405010052.Cxh2bazm-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/202405010052.Cxh2bazm-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> kernel/time/timekeeping.c:1271: warning: Function parameter or struct member 'cycles' not described in 'ktime_real_to_base_clock'
kernel/time/timekeeping.c:2547: warning: Function parameter or struct member 'txc' not described in 'do_adjtimex'
kernel/time/timekeeping.c:2615: warning: Function parameter or struct member 'phase_ts' not described in 'hardpps'
kernel/time/timekeeping.c:2615: warning: Function parameter or struct member 'raw_ts' not described in 'hardpps'
vim +1271 kernel/time/timekeeping.c
1259
1260 /**
1261 * ktime_real_to_base_clock() - Convert CLOCK_REALTIME timestamp to a base clock timestamp
1262 * @treal: CLOCK_REALTIME timestamp to convert
1263 * @base_id: base clocksource id
1264 * @*cycles: pointer to store the converted base clock timestamp
1265 *
1266 * Converts a supplied, future realtime clock value to the corresponding base clock value.
1267 *
1268 * Return: true if the conversion is successful, false otherwise.
1269 */
1270 bool ktime_real_to_base_clock(ktime_t treal, enum clocksource_ids base_id, u64 *cycles)
> 1271 {
1272 struct timekeeper *tk = &tk_core.timekeeper;
1273 unsigned int seq;
1274 u64 delta;
1275
1276 do {
1277 seq = read_seqcount_begin(&tk_core.seq);
1278 if ((u64)treal < tk->tkr_mono.base_real)
1279 return false;
1280 delta = (u64)treal - tk->tkr_mono.base_real;
1281 if (!convert_ns_to_cs(&delta))
1282 return false;
1283 *cycles = tk->tkr_mono.cycle_last + delta;
1284 if (!convert_cs_to_base(cycles, base_id))
1285 return false;
1286 } while (read_seqcount_retry(&tk_core.seq, seq));
1287
1288 return true;
1289 }
1290 EXPORT_SYMBOL_GPL(ktime_real_to_base_clock);
1291
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2024-04-30 16:28 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-30 8:52 [PATCH v7 00/12] Add support for Intel PPS Generator lakshmi.sowjanya.d
2024-04-30 8:52 ` [PATCH v7 01/12] timekeeping: Add base clock properties in clocksource structure lakshmi.sowjanya.d
2024-04-30 14:28 ` Peter Hilber
2024-05-09 4:38 ` D, Lakshmi Sowjanya
2024-04-30 8:52 ` [PATCH v7 02/12] x86/tsc: Update tsc/art values in the base clock structure lakshmi.sowjanya.d
2024-04-30 8:52 ` [PATCH v7 03/12] e1000e: remove convert_art_to_tsc() lakshmi.sowjanya.d
2024-04-30 8:52 ` [PATCH v7 04/12] igc: remove convert_art_ns_to_tsc() lakshmi.sowjanya.d
2024-04-30 8:52 ` [PATCH v7 05/12] stmmac: intel: remove convert_art_to_tsc() lakshmi.sowjanya.d
2024-04-30 8:52 ` [PATCH v7 06/12] ALSA: hda: " lakshmi.sowjanya.d
2024-04-30 8:52 ` [PATCH v7 07/12] ice/ptp: " lakshmi.sowjanya.d
2024-04-30 8:52 ` [PATCH v7 08/12] x86/tsc: Remove art to tsc conversion functions which are obsolete lakshmi.sowjanya.d
2024-04-30 8:52 ` [PATCH v7 09/12] timekeeping: Add function to convert realtime to base clock lakshmi.sowjanya.d
2024-04-30 16:27 ` kernel test robot [this message]
2024-04-30 8:52 ` [PATCH v7 10/12] pps: generators: Add PPS Generator TIO Driver lakshmi.sowjanya.d
2024-04-30 13:53 ` Andy Shevchenko
2024-05-09 4:38 ` D, Lakshmi Sowjanya
2024-05-10 14:27 ` Andy Shevchenko
2024-04-30 8:52 ` [PATCH v7 11/12] Documentation: driver-api: pps: Add Intel Timed I/O PPS generator lakshmi.sowjanya.d
2024-04-30 8:52 ` [PATCH v7 12/12] ABI: pps: Add ABI documentation for Intel TIO lakshmi.sowjanya.d
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=202405010052.Cxh2bazm-lkp@intel.com \
--to=lkp@intel.com \
--cc=alexandre.torgue@foss.st.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=anthony.l.nguyen@intel.com \
--cc=christopher.s.hall@intel.com \
--cc=corbet@lwn.net \
--cc=davem@davemloft.net \
--cc=eddie.dong@intel.com \
--cc=giometti@enneenne.com \
--cc=intel-wired-lan@lists.osuosl.org \
--cc=joabreu@synopsys.com \
--cc=jstultz@google.com \
--cc=lakshmi.sowjanya.d@intel.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=mcoquelin.stm32@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pandith.n@intel.com \
--cc=perex@perex.cz \
--cc=peter.hilber@opensynergy.com \
--cc=subramanian.mohan@intel.com \
--cc=tglx@linutronix.de \
--cc=thejesh.reddy.t.r@intel.com \
--cc=x86@kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).