[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <202508151711.pZGu9jac-lkp@intel.com>
Date: Fri, 15 Aug 2025 17:57:33 +0800
From: kernel test robot <lkp@...el.com>
To: Qinxin Xia <xiaqinxin@...wei.com>, will@...nel.org,
robin.murphy@....com, linux-kernel@...r.kernel.org
Cc: oe-kbuild-all@...ts.linux.dev, linux-arm-kernel@...ts.infradead.org,
iommu@...ts.linux.dev, xiaqinxin@...wei.com, yangyicong@...wei.com,
wangzhou1@...ilicon.com, prime.zeng@...ilicon.com,
xuwei5@...wei.com, fanghao11@...wei.com,
jonathan.cameron@...wei.com, linuxarm@...wei.com
Subject: Re: [PATCH 1/2] iommu/debug: Add IOMMU page table dump debug facility
Hi Qinxin,
kernel test robot noticed the following build errors:
[auto build test ERROR on akpm-mm/mm-everything]
[also build test ERROR on linus/master v6.17-rc1 next-20250815]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Qinxin-Xia/iommu-debug-Add-IOMMU-page-table-dump-debug-facility/20250814-173720
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/20250814093005.2040511-2-xiaqinxin%40huawei.com
patch subject: [PATCH 1/2] iommu/debug: Add IOMMU page table dump debug facility
config: sh-allmodconfig (https://download.01.org/0day-ci/archive/20250815/202508151711.pZGu9jac-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250815/202508151711.pZGu9jac-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/202508151711.pZGu9jac-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/iommu/iommu.c: In function 'iommu_iova_info_dump':
>> drivers/iommu/iommu.c:1093:17: error: implicit declaration of function 'iommu_domain_to_iovad'; did you mean 'iommu_domain_type_str'? [-Wimplicit-function-declaration]
1093 | iovad = iommu_domain_to_iovad(domain);
| ^~~~~~~~~~~~~~~~~~~~~
| iommu_domain_type_str
>> drivers/iommu/iommu.c:1093:15: error: assignment to 'struct iova_domain *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
1093 | iovad = iommu_domain_to_iovad(domain);
| ^
vim +1093 drivers/iommu/iommu.c
1078
1079 /**
1080 * iova_info_dump - dump iova alloced
1081 * @s - file structure used to generate serialized output
1082 * @iovad: - iova domain in question.
1083 */
1084 static int iommu_iova_info_dump(struct seq_file *s, struct iommu_domain *domain)
1085 {
1086 struct iova_domain *iovad;
1087 unsigned long long pfn;
1088 unsigned long i_shift;
1089 struct rb_node *node;
1090 unsigned long flags;
1091 size_t prot_size;
1092
> 1093 iovad = iommu_domain_to_iovad(domain);
1094 if (!iovad)
1095 return -ENOMEM;
1096
1097 i_shift = iova_shift(iovad);
1098
1099 /* Take the lock so that no other thread is manipulating the rbtree */
1100 spin_lock_irqsave(&iovad->iova_rbtree_lock, flags);
1101 assert_spin_locked(&iovad->iova_rbtree_lock);
1102
1103 for (node = rb_first(&iovad->rbroot); node; node = rb_next(node)) {
1104 struct iova *iova = rb_entry(node, struct iova, node);
1105
1106 if (iova->pfn_hi <= iova->pfn_lo)
1107 continue;
1108
1109 for (pfn = iova->pfn_lo; pfn <= iova->pfn_hi; ) {
1110 prot_size = domain->ops->dump_iova_prot(s, domain, pfn << i_shift);
1111 pfn = ((pfn << i_shift) + prot_size) >> i_shift;
1112 }
1113 }
1114
1115 spin_unlock_irqrestore(&iovad->iova_rbtree_lock, flags);
1116 return 0;
1117 }
1118
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists