linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [linux-next:master 11306/14422] drivers/iommu/iommufd/hw_pagetable.c:234:undefined reference to `__udivdi3'
@ 2023-10-23 18:35 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-10-23 18:35 UTC (permalink / raw)
  To: Joao Martins
  Cc: oe-kbuild-all, Linux Memory Management List, Jason Gunthorpe,
	Kevin Tian

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   e8361b005d7c92997d12f2b85a9e4a525738bd9d
commit: 1337d793ea254e9b6e79568e1dd063c6ed8c2741 [11306/14422] iommufd: Add IOMMU_HWPT_GET_DIRTY_BITMAP
config: microblaze-randconfig-r015-20230422 (https://download.01.org/0day-ci/archive/20231024/202310240246.FyXNZrbZ-lkp@intel.com/config)
compiler: microblaze-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231024/202310240246.FyXNZrbZ-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/202310240246.FyXNZrbZ-lkp@intel.com/

All errors (new ones prefixed by >>):

   microblaze-linux-ld: drivers/iommu/iommufd/hw_pagetable.o: in function `iommufd_check_iova_range':
>> drivers/iommu/iommufd/hw_pagetable.c:234:(.text+0x99c): undefined reference to `__udivdi3'
   microblaze-linux-ld: drivers/iommu/iommufd/hw_pagetable.o: in function `iommufd_hwpt_get_dirty_bitmap':
   drivers/iommu/iommufd/hw_pagetable.c:234:(.text+0xa6c): undefined reference to `__udivdi3'


vim +234 drivers/iommu/iommufd/hw_pagetable.c

   223	
   224	int iommufd_check_iova_range(struct iommufd_ioas *ioas,
   225				     struct iommu_hwpt_get_dirty_bitmap *bitmap)
   226	{
   227		unsigned long npages;
   228		size_t iommu_pgsize;
   229		int rc = -EINVAL;
   230	
   231		if (!bitmap->page_size)
   232			return rc;
   233	
 > 234		npages = bitmap->length / bitmap->page_size;
   235		if (!npages || (npages > ULONG_MAX))
   236			return rc;
   237	
   238		iommu_pgsize = ioas->iopt.iova_alignment;
   239	
   240		if (bitmap->iova & (iommu_pgsize - 1))
   241			return rc;
   242	
   243		if (!bitmap->length || bitmap->length & (iommu_pgsize - 1))
   244			return rc;
   245	
   246		return 0;
   247	}
   248	

-- 
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:[~2023-10-23 18:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-23 18:35 [linux-next:master 11306/14422] drivers/iommu/iommufd/hw_pagetable.c:234:undefined reference to `__udivdi3' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).