From: kernel test robot <lkp@intel.com>
To: Jian Shen <shenjian15@huawei.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Paolo Abeni <pabeni@redhat.com>,
Peiyang Wang <wangpeiyang1@huawei.com>,
Jijie Shao <shaojijie@huawei.com>
Subject: drivers/net/ethernet/hisilicon/hns3/hns3_enet.c:395:21: error: 'struct iommu_iotlb_gather' has no member named 'start'
Date: Mon, 4 Nov 2024 07:39:36 +0800 [thread overview]
Message-ID: <202411040704.UsG2WLc7-lkp@intel.com> (raw)
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
reply other threads:[~2024-11-03 23:40 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202411040704.UsG2WLc7-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pabeni@redhat.com \
--cc=shaojijie@huawei.com \
--cc=shenjian15@huawei.com \
--cc=wangpeiyang1@huawei.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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