[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202511192029.jlDLXPI0-lkp@intel.com>
Date: Wed, 19 Nov 2025 20:34:29 +0800
From: kernel test robot <lkp@...el.com>
To: Hao-Wen Ting <haowen.ting@...ltek.com>, daniel.lezcano@...aro.org,
tglx@...utronix.de
Cc: oe-kbuild-all@...ts.linux.dev, jinn.cheng@...ltek.com,
edwardwu@...ltek.com, phelic@...ltek.com,
shawn.huang724@...ltek.com, haowen.ting@...ltek.com,
cy.huang@...ltek.com, james.tai@...ltek.com, cylee12@...ltek.com,
phinex@...ltek.com, conor+dt@...nel.org, krzk+dt@...nel.org,
robh@...nel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, stanley_chang@...ltek.com
Subject: Re: [PATCH v3 2/2] clocksource: Add Realtek systimer as tick
broadcast driver
Hi Hao-Wen,
kernel test robot noticed the following build errors:
[auto build test ERROR on 948b99877bf5a1cd58bee930e455b7574daba5c3]
url: https://github.com/intel-lab-lkp/linux/commits/Hao-Wen-Ting/dt-bindings-timer-Add-Realtek-SYSTIMER/20251117-153806
base: 948b99877bf5a1cd58bee930e455b7574daba5c3
patch link: https://lore.kernel.org/r/20251117073408.428190-3-haowen.ting%40realtek.com
patch subject: [PATCH v3 2/2] clocksource: Add Realtek systimer as tick broadcast driver
config: arm-randconfig-001-20251119 (https://download.01.org/0day-ci/archive/20251119/202511192029.jlDLXPI0-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251119/202511192029.jlDLXPI0-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511192029.jlDLXPI0-lkp@intel.com/
All errors (new ones prefixed by >>):
arm-linux-gnueabi-ld: drivers/clocksource/timer-realtek.o: in function `rtk_syst_clkevt_next_ktime':
>> drivers/clocksource/timer-realtek.c:79: undefined reference to `__aeabi_ldivmod'
>> arm-linux-gnueabi-ld: drivers/clocksource/timer-realtek.c:86: undefined reference to `__aeabi_ldivmod'
vim +79 drivers/clocksource/timer-realtek.c
71
72 static int rtk_syst_clkevt_next_ktime(ktime_t expires,
73 struct clock_event_device *clkevt)
74 {
75 u64 cmp_val;
76 unsigned long flags;
77 ktime_t now = ktime_get();
78 s64 delta_ns = ktime_to_ns(ktime_sub(expires, now));
> 79 u64 delta_us = delta_ns / 1000;
80
81 pr_debug("delta_ns = %lld, clkevt.min_delta_ns = %llu\n",
82 delta_ns, clkevt->min_delta_ns);
83
84 if (delta_ns <= (s64)clkevt->min_delta_ns) {
85 delta_ns = clkevt->min_delta_ns;
> 86 delta_us = delta_ns / 1000;
87 pr_debug("Clamping delta_ns to min_delta_ns\n");
88 }
89
90 rtk_cmp_en_write(DSBL);
91 local_irq_save(flags);
92 cmp_val = rtk_ts64_read();
93
94 /* Set CMP value to current timestamp plus delta_us */
95 rtk_cmp_value_write(cmp_val + delta_us);
96 rtk_cmp_en_write(ENBL);
97 local_irq_restore(flags);
98 return 0;
99 }
100
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists