All of lore.kernel.org
 help / color / mirror / Atom feed
* [tglx-devel:timers/ptp/tkntp 26/26] kernel/time/timekeeping_debug.c:47: undefined reference to `ktime_get_ptp'
@ 2024-12-09 22:22 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-12-09 22:22 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git timers/ptp/tkntp
head:   184d5014d09b27045a7e6a1e9a44122387149e59
commit: 184d5014d09b27045a7e6a1e9a44122387149e59 [26/26] timekeeping: Hack to test PTP clocks
config: i386-buildonly-randconfig-003-20241210 (https://download.01.org/0day-ci/archive/20241210/202412100605.aFGq4eec-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241210/202412100605.aFGq4eec-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/202412100605.aFGq4eec-lkp@intel.com/

All errors (new ones prefixed by >>):

   ld: kernel/time/timekeeping_debug.o: in function `tk_debug_ptp_show':
>> kernel/time/timekeeping_debug.c:47: undefined reference to `ktime_get_ptp'
   ld: kernel/time/timekeeping_debug.o: in function `tk_debug_ptp_write':
>> kernel/time/timekeeping_debug.c:65: undefined reference to `timekeeping_unregister_ptp_clock'
>> ld: kernel/time/timekeeping_debug.c:63: undefined reference to `timekeeping_register_ptp_clock'


vim +47 kernel/time/timekeeping_debug.c

    41	
    42	static int tk_debug_ptp_show(struct seq_file *s, void *data)
    43	{
    44		for (unsigned int id = CLOCK_PTP; id <= CLOCK_PTP_LAST; id++) {
    45			ktime_t now;
    46	
  > 47			if (ktime_get_ptp(id, &now))
    48				seq_printf(s, "%2u: %16lld\n", id, now);
    49		}
    50		return 0;
    51	}
    52	
    53	static ssize_t tk_debug_ptp_write(struct file *file, const char __user *userbuf,
    54					  size_t count, loff_t *ppos)
    55	{
    56		int ret, id;
    57	
    58		ret = kstrtoint_from_user(userbuf, count, 10, &id);
    59		if (ret)
    60			return ret;
    61	
    62		if (id >= CLOCK_PTP && id <= CLOCK_PTP_LAST)
  > 63			ret = timekeeping_register_ptp_clock(id, 0);
    64		else if (id <= -CLOCK_PTP && id >= -CLOCK_PTP_LAST)
  > 65			timekeeping_unregister_ptp_clock(-id);
    66		else
    67			ret = -EINVAL;
    68		return ret ? : count;
    69	}
    70	DEFINE_SHOW_STORE_ATTRIBUTE(tk_debug_ptp);
    71	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-12-09 22:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-09 22:22 [tglx-devel:timers/ptp/tkntp 26/26] kernel/time/timekeeping_debug.c:47: undefined reference to `ktime_get_ptp' 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.