[linux-next:master 10349/13479] kernel/trace/rv/monitors/nomiss/nomiss_kunit.c:11: undefined reference to `__udivdi3'

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   ea2bff00da89d7767d677bb68470130ba96f4928
commit: 8da2a88383658dac97769ed8f807ef6100a69480 [10349/13479] rv: Add KUnit tests for some DA/HA monitors
config: xtensa-randconfig-001-20260807 (https://download.01.org/0day-ci/archive/20260807/[email protected]/config)
compiler: xtensa-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260807/[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 >>):

   xtensa-linux-ld: kernel/trace/rv/rv_monitors_test.o: in function `rv_kunit_alloc_mock_task':
>> kernel/trace/rv/monitors/nomiss/nomiss_kunit.c:11: undefined reference to `__udivdi3'
   xtensa-linux-ld: kernel/trace/rv/rv_monitors_test.o: in function `rv_test_nomiss':
   kernel/trace/rv/monitors/nomiss/nomiss_kunit.c:31: undefined reference to `__udivdi3'


vim +11 kernel/trace/rv/monitors/nomiss/nomiss_kunit.c

     9	
    10	static void rv_test_nomiss(struct kunit *test)
  > 11	{
    12		struct task_struct *target = rv_kunit_alloc_mock_task(test);
    13		struct task_struct *other = rv_kunit_alloc_mock_task(test);
    14		struct rv_kunit_ctx *ctx = test->priv;
    15	
    16		prepare_test(test, &rv_nomiss_ops.mon);
    17	
    18		target->pid = 99;
    19		target->policy = SCHED_DEADLINE;
    20		target->dl.runtime = 10000;
    21		target->dl.dl_deadline = 20000;
    22	
    23		rv_nomiss_ops.handle_newtask(NULL, target, 0);
    24	
    25		/* Task gets preempted and can't terminate before deadline */
    26		rv_nomiss_ops.handle_sched_switch(NULL, 0, other, target, TASK_RUNNING);
    27		rv_nomiss_ops.handle_dl_replenish(NULL, &target->dl, 0, DL_TASK);
    28		udelay(10);
    29		rv_nomiss_ops.handle_sched_switch(NULL, 0, target, other, TASK_RUNNING);
    30		RV_KUNIT_EXPECT_REACTION_HERE(test, ctx) {
    31			udelay(15 + *rv_nomiss_ops.deadline_thresh / 1000);
    32			rv_nomiss_ops.handle_sched_switch(NULL, 0, other, target, TASK_RUNNING);
    33		}
    34	}
    35	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.