kbuild Development List
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Thomas Weißschuh (Schneider Electric)"
	<thomas.weissschuh@linutronix.de>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [thomas-weissschuh:b4/auxclock-nanosleep 53/55] kernel/time/time_test.c:184:41: error: implicit declaration of function 'tk_aux_reciprocal_mult'
Date: Sat, 01 Aug 2026 05:30:44 +0800	[thread overview]
Message-ID: <202608010522.IMcTJaym-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git b4/auxclock-nanosleep
head:   c2edf72f8ebcec4268393789859f789bb12ea5d0
commit: d9ad800448084bd3e951f2de98a1180affcc40a7 [53/55] lazy update
config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20260801/202608010522.IMcTJaym-lkp@intel.com/config)
compiler: powerpc64-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260801/202608010522.IMcTJaym-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/202608010522.IMcTJaym-lkp@intel.com/

All errors (new ones prefixed by >>):

   kernel/time/time_test.c: In function 'aux_mono_conv':
   kernel/time/time_test.c:183:16: error: implicit declaration of function 'tk_aux_capture_mono_conv' [-Wimplicit-function-declaration]
     183 |         conv = tk_aux_capture_mono_conv(params->mono_base, mono_mult, params->aux_base, aux_mult,
         |                ^~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/time/time_test.c:184:41: error: implicit declaration of function 'tk_aux_reciprocal_mult' [-Wimplicit-function-declaration]
     184 |                                         tk_aux_reciprocal_mult(shift, shift, mono_mult),
         |                                         ^~~~~~~~~~~~~~~~~~~~~~
   kernel/time/time_test.c:183:16: error: incompatible types when assigning to type 'struct tk_aux_mono_conv' from type 'int'
     183 |         conv = tk_aux_capture_mono_conv(params->mono_base, mono_mult, params->aux_base, aux_mult,
         |                ^~~~~~~~~~~~~~~~~~~~~~~~


vim +/tk_aux_reciprocal_mult +184 kernel/time/time_test.c

   168	
   169	static void aux_mono_conv(struct kunit *test)
   170	{
   171		const struct aux_mono_conv_test_case *params = test->param_value;
   172		u32 mono_mult, aux_mult, shift;
   173		struct tk_aux_mono_conv conv;
   174	
   175		if (__is_defined(MODULE) || !IS_ENABLED(CONFIG_POSIX_AUX_CLOCKS)) {
   176			kunit_skip(test, "CONFIG_POSIX_AUX_CLOCKS is not reachable");
   177			return;
   178		}
   179	
   180		clocks_calc_mult_shift(&mono_mult, &shift, 1, 1, 200);
   181		aux_mult = mult_frac(mono_mult, 100 + params->speed_difference_percentage, 100);
   182	
   183		conv = tk_aux_capture_mono_conv(params->mono_base, mono_mult, params->aux_base, aux_mult,
 > 184						tk_aux_reciprocal_mult(shift, shift, mono_mult),
   185						tk_aux_reciprocal_mult(shift, shift, aux_mult),
   186						shift);
   187	
   188		for (size_t i = 0; i < ARRAY_SIZE(params->timestamps); i++) {
   189			ktime_t mono = params->timestamps[i].mono;
   190			ktime_t aux = params->timestamps[i].aux;
   191			kunit_info(test, "timestamp mono=%lld aux=%lld\n", mono, aux);
   192	
   193			ktime_t expected_aux = mult_frac(mono - conv.mono_base, 100 + params->speed_difference_percentage, 100) + conv.aux_base;
   194	
   195			KUNIT_ASSERT_EQ(test, aux, expected_aux);
   196	
   197			ktime_t converted_aux = ktime_mono_to_aux(mono, &conv);
   198			kunit_info(test, "converted_aux=%lld\n", converted_aux);
   199			KUNIT_EXPECT_GE(test, converted_aux, aux - 1);
   200			KUNIT_EXPECT_LE(test, converted_aux, aux + 1);
   201	
   202			ktime_t converted_mono = ktime_aux_to_mono(aux, &conv);
   203			kunit_info(test, "converted_mono=%lld\n", converted_mono);
   204			KUNIT_EXPECT_GE(test, converted_mono, mono - 1);
   205			KUNIT_EXPECT_LE(test, converted_mono, mono + 1);
   206		}
   207	

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

                 reply	other threads:[~2026-07-31 21:30 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=202608010522.IMcTJaym-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=thomas.weissschuh@linutronix.de \
    /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