[aegl:resctrl2_v65rc1 2/11] fs/resctrl2/arch/x86/rdt_monitor.c:466: undefined reference to `__udivdi3'

kernel test robot <[email protected]>
Newsgroups gmane.linux.ports.ia64
Message-ID <[email protected]>
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux.git resctrl2_v65rc1
head:   16f9fb3b3a3875cdb7f611d60e5072ed15feec27
commit: 6ea3248fa5ec877bbd6a7a1201775ae486016256 [2/11] resctrl2: Arch x86 modules for most of the legacy control/monitor functions Missing: 1) Pseudo-locking 2) AMD SMBA/BMEC 3) Other stuff I haven't noticed
config: i386-randconfig-r006-20230718 (https://download.01.org/0day-ci/archive/20230718/[email protected]/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230718/[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 >>):

   ld: fs/resctrl2/arch/x86/rdt_monitor.o: in function `mbm_poll_threshold_write':
>> fs/resctrl2/arch/x86/rdt_monitor.c:466: undefined reference to `__udivdi3'


vim +466 fs/resctrl2/arch/x86/rdt_monitor.c

   453	
   454	static ssize_t mbm_poll_threshold_write(char *buf, size_t nbytes)
   455	{
   456		unsigned int mbytes;
   457		int ret;
   458	
   459		ret = kstrtouint(buf, 0, &mbytes);
   460		if (ret)
   461			return ret;
   462		if (mbytes > MBM_POLL_THRESHOLD)
   463			return -EINVAL;
   464	
   465		mbm_poll_threshold = mbytes;
 > 466		mbm_poll_threshold_chunks = ((u64)mbytes << 20) / upscale;
   467	
   468		return nbytes;
   469	}
   470	

-- 
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.