mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* drivers/net/ethernet/hisilicon/hns3/hns3_enet.c:395:21: error: 'struct iommu_iotlb_gather' has no member named 'start'
@ 2024-11-03 23:39 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-11-03 23:39 UTC (permalink / raw)
  To: Jian Shen
  Cc: oe-kbuild-all, linux-kernel, Paolo Abeni, Peiyang Wang, Jijie Shao

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   a8cc7432728d019a10cb412401ebc15ed7504289
commit: f2c14899caba76da93ff3fff46b4d5a8f43ce07e net: hns3: add sync command to sync io-pgtable
date:   4 days ago
config: sparc64-randconfig-002-20241104 (https://download.01.org/0day-ci/archive/20241104/202411040704.UsG2WLc7-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 14.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241104/202411040704.UsG2WLc7-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/202411040704.UsG2WLc7-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/net/ethernet/hisilicon/hns3/hns3_enet.c: In function 'hns3_dma_map_sync':
>> drivers/net/ethernet/hisilicon/hns3/hns3_enet.c:395:21: error: 'struct iommu_iotlb_gather' has no member named 'start'
     395 |         iotlb_gather.start = iova;
         |                     ^
>> drivers/net/ethernet/hisilicon/hns3/hns3_enet.c:396:21: error: 'struct iommu_iotlb_gather' has no member named 'end'
     396 |         iotlb_gather.end = iova + granule - 1;
         |                     ^
>> drivers/net/ethernet/hisilicon/hns3/hns3_enet.c:397:21: error: 'struct iommu_iotlb_gather' has no member named 'pgsize'
     397 |         iotlb_gather.pgsize = granule;
         |                     ^


vim +395 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c

   380	
   381	#define HNS3_INVALID_PTYPE \
   382			ARRAY_SIZE(hns3_rx_ptype_tbl)
   383	
   384	static void hns3_dma_map_sync(struct device *dev, unsigned long iova)
   385	{
   386		struct iommu_domain *domain = iommu_get_domain_for_dev(dev);
   387		struct iommu_iotlb_gather iotlb_gather;
   388		size_t granule;
   389	
   390		if (!domain || !iommu_is_dma_domain(domain))
   391			return;
   392	
   393		granule = 1 << __ffs(domain->pgsize_bitmap);
   394		iova = ALIGN_DOWN(iova, granule);
 > 395		iotlb_gather.start = iova;
 > 396		iotlb_gather.end = iova + granule - 1;
 > 397		iotlb_gather.pgsize = granule;
   398	
   399		iommu_iotlb_sync(domain, &iotlb_gather);
   400	}
   401	

-- 
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:[~2024-11-03 23:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-03 23:39 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c:395:21: error: 'struct iommu_iotlb_gather' has no member named 'start' 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

Powered by JetHome