All of lore.kernel.org
 help / color / mirror / Atom feed
* [thomas-weissschuh:b4/auxclock-nanosleep 32/55] kernel/time/time_test.c:183:16: error: implicit declaration of function 'tk_aux_capture_mono_conv'
@ 2026-07-31 20:16 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-07-31 20:16 UTC (permalink / raw)
  To: Thomas Weißschuh (Schneider Electric); +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git b4/auxclock-nanosleep
head:   c2edf72f8ebcec4268393789859f789bb12ea5d0
commit: 56f649dd45f9cd0a5e11c8c45dcae8ac5572c67d [32/55] timekeeping: time_test: Add a test for auxiliary to monotonic clock conversions
config: powerpc-allmodconfig (https://download.01.org/0day-ci/archive/20260801/202608010434.VsbM8KfG-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/202608010434.VsbM8KfG-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/202608010434.VsbM8KfG-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, shift);
         |                ^~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/time/time_test.c:183:16: error: incompatible types when assigning to type 'struct tk_aux_mono_conv' from type 'int'


vim +/tk_aux_capture_mono_conv +183 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, shift);
   184	
   185		for (size_t i = 0; i < ARRAY_SIZE(params->timestamps); i++) {
   186			ktime_t mono = params->timestamps[i].mono;
   187			ktime_t aux = params->timestamps[i].aux;
   188			kunit_info(test, "timestamp mono=%lld aux=%lld\n", mono, aux);
   189	
   190			ktime_t expected_aux = mult_frac(mono - conv.mono_base, 100 + params->speed_difference_percentage, 100) + conv.aux_base;
   191	
   192			KUNIT_ASSERT_EQ(test, aux, expected_aux);
   193	
   194			ktime_t converted_aux = ktime_mono_to_aux(mono, &conv);
   195			kunit_info(test, "converted_aux=%lld\n", converted_aux);
   196			KUNIT_EXPECT_GE(test, converted_aux, aux - 1);
   197			KUNIT_EXPECT_LE(test, converted_aux, aux + 1);
   198	
   199			ktime_t converted_mono = ktime_aux_to_mono(aux, &conv);
   200			kunit_info(test, "converted_mono=%lld\n", converted_mono);
   201			KUNIT_EXPECT_GE(test, converted_mono, mono - 1);
   202			KUNIT_EXPECT_LE(test, converted_mono, mono + 1);
   203		}
   204	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [thomas-weissschuh:b4/auxclock-nanosleep 32/55] kernel/time/time_test.c:183:16: error: implicit declaration of function 'tk_aux_capture_mono_conv'
@ 2026-07-31 20:16 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-07-31 20:16 UTC (permalink / raw)
  To: Thomas Weißschuh (Schneider Electric); +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git b4/auxclock-nanosleep
head:   c2edf72f8ebcec4268393789859f789bb12ea5d0
commit: 56f649dd45f9cd0a5e11c8c45dcae8ac5572c67d [32/55] timekeeping: time_test: Add a test for auxiliary to monotonic clock conversions
config: alpha-allmodconfig (https://download.01.org/0day-ci/archive/20260801/202608010419.ZmmWN03i-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260801/202608010419.ZmmWN03i-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/202608010419.ZmmWN03i-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, shift);
         |                ^~~~~~~~~~~~~~~~~~~~~~~~
>> kernel/time/time_test.c:183:16: error: incompatible types when assigning to type 'struct tk_aux_mono_conv' from type 'int'


vim +/tk_aux_capture_mono_conv +183 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, shift);
   184	
   185		for (size_t i = 0; i < ARRAY_SIZE(params->timestamps); i++) {
   186			ktime_t mono = params->timestamps[i].mono;
   187			ktime_t aux = params->timestamps[i].aux;
   188			kunit_info(test, "timestamp mono=%lld aux=%lld\n", mono, aux);
   189	
   190			ktime_t expected_aux = mult_frac(mono - conv.mono_base, 100 + params->speed_difference_percentage, 100) + conv.aux_base;
   191	
   192			KUNIT_ASSERT_EQ(test, aux, expected_aux);
   193	
   194			ktime_t converted_aux = ktime_mono_to_aux(mono, &conv);
   195			kunit_info(test, "converted_aux=%lld\n", converted_aux);
   196			KUNIT_EXPECT_GE(test, converted_aux, aux - 1);
   197			KUNIT_EXPECT_LE(test, converted_aux, aux + 1);
   198	
   199			ktime_t converted_mono = ktime_aux_to_mono(aux, &conv);
   200			kunit_info(test, "converted_mono=%lld\n", converted_mono);
   201			KUNIT_EXPECT_GE(test, converted_mono, mono - 1);
   202			KUNIT_EXPECT_LE(test, converted_mono, mono + 1);
   203		}
   204	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-07-31 20:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-31 20:16 [thomas-weissschuh:b4/auxclock-nanosleep 32/55] kernel/time/time_test.c:183:16: error: implicit declaration of function 'tk_aux_capture_mono_conv' kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2026-07-31 20:16 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.