lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202411040704.UsG2WLc7-lkp@intel.com>
Date: Mon, 4 Nov 2024 07:39:36 +0800
From: kernel test robot <lkp@...el.com>
To: Jian Shen <shenjian15@...wei.com>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
	Paolo Abeni <pabeni@...hat.com>,
	Peiyang Wang <wangpeiyang1@...wei.com>,
	Jijie Shao <shaojijie@...wei.com>
Subject: drivers/net/ethernet/hisilicon/hns3/hns3_enet.c:395:21: error:
 'struct iommu_iotlb_gather' has no member named 'start'

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ