Skip to contentSkip to conversation

ERROR: modpost: "__udivdi3" [kernel/trace/rv/rv_monitors_test.ko] undefined!

PATCH kernel test robot 3 participants 3 messages Aug 1 – Aug 3

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace latency/for-next
head:   984b5a36fd12d1849511a45fda32036fe2b0d004
commit: 8da2a88383658dac97769ed8f807ef6100a69480 [33/38] rv: Add KUnit tests for some DA/HA monitors
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20260802/[email protected]/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260802/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>, old ones prefixed by <<):

>> ERROR: modpost: "__udivdi3" [kernel/trace/rv/rv_monitors_test.ko] undefined!

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

#1 lore raw
Quoted 7 lines · kernel test robot
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace latency/for-next
head:   984b5a36fd12d1849511a45fda32036fe2b0d004
commit: 8da2a88383658dac97769ed8f807ef6100a69480 [33/38] rv: Add KUnit tests for some DA/HA monitors
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20260802/[email protected]/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260802/[email protected]/reproduce)
Quoted 8 lines

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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>, old ones prefixed by <<):

Quoted 1 line
Quoted 1 line

ERROR: modpost: "__udivdi3" [kernel/trace/rv/rv_monitors_test.ko] undefined!

We could switch the division to div64_u64(), or we could change deadline_thresh's type to u32.

Gabriele, can deadline_thresh fits in u32?

Nam

#2 lore raw
Quoted 24 lines · Nam Cao
Quoted 23 lines · kernel test robot

tree:
https://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace latency/fo
r-next
head:   984b5a36fd12d1849511a45fda32036fe2b0d004
commit: 8da2a88383658dac97769ed8f807ef6100a69480 [33/38] rv: Add KUnit tests for some DA/HA monitors
config: i386-allmodconfig
(https://download.01.org/0day-ci/archive/20260802/202608020311.hYjqOG5k-lkp@
intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build):
(https://download.01.org/0day-ci/archive/20260802/202608020311.hYjqOG5k-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

Quoted 3 lines

Closes:
https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>, old ones prefixed by <<):

Quoted 7 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

ERROR: modpost: "__udivdi3" [kernel/trace/rv/rv_monitors_test.ko] undefined!

We could switch the division to div64_u64(), or we could change deadline_thresh's type to u32.

Gabriele, can deadline_thresh fits in u32?

That would make it limited to 4.29 s which is probably way more than enough on normal systems, but this limit would be driven purely by the KUnit test, I'm not fond of that.

Probably the best thing here is to use div64_u64() (or even do_div() though we don't really care about performance).

I can send a quick fix.

Thanks,
Gabriele