From: kernel test robot <lkp@intel.com>
To: Qinxin Xia <xiaqinxin@huawei.com>,
will@kernel.org, robin.murphy@arm.com,
linux-kernel@vger.kernel.org
Cc: oe-kbuild-all@lists.linux.dev,
linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev,
xiaqinxin@huawei.com, yangyicong@huawei.com,
wangzhou1@hisilicon.com, prime.zeng@hisilicon.com,
xuwei5@huawei.com, fanghao11@huawei.com,
jonathan.cameron@huawei.com, linuxarm@huawei.com
Subject: Re: [PATCH 2/2] iommu/io-pgtable: Add ARM SMMUv3 page table dump support
Date: Fri, 15 Aug 2025 17:14:57 +0800 [thread overview]
Message-ID: <202508151641.JHlhcDRk-lkp@intel.com> (raw)
In-Reply-To: <20250814093005.2040511-3-xiaqinxin@huawei.com>
Hi Qinxin,
kernel test robot noticed the following build warnings:
[auto build test WARNING on akpm-mm/mm-everything]
[also build test WARNING 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-3-xiaqinxin%40huawei.com
patch subject: [PATCH 2/2] iommu/io-pgtable: Add ARM SMMUv3 page table dump support
config: s390-allyesconfig (https://download.01.org/0day-ci/archive/20250815/202508151641.JHlhcDRk-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 15.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250815/202508151641.JHlhcDRk-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/202508151641.JHlhcDRk-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from include/asm-generic/bug.h:22,
from arch/s390/include/asm/bug.h:69,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from arch/s390/include/asm/cmpxchg.h:11,
from arch/s390/include/asm/atomic.h:16,
from include/linux/atomic.h:7,
from drivers/iommu/io-pgtable-arm.c:12:
drivers/iommu/io-pgtable-arm.c: In function 'dump_prot':
>> include/linux/kern_levels.h:5:25: warning: format '%zu' expects argument of type 'size_t', but argument 2 has type 'int' [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:486:25: note: in definition of macro 'printk_index_wrap'
486 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
include/linux/printk.h:557:9: note: in expansion of macro 'printk'
557 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
include/linux/kern_levels.h:11:25: note: in expansion of macro 'KERN_SOH'
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
include/linux/printk.h:557:16: note: in expansion of macro 'KERN_ERR'
557 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~
drivers/iommu/io-pgtable-arm.c:882:25: note: in expansion of macro 'pr_err'
882 | pr_err("len = %zu, attr = %s, i =%d\n", length, attr, i);
| ^~~~~~
>> include/linux/kern_levels.h:5:25: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t' {aka 'long unsigned int'} [-Wformat=]
5 | #define KERN_SOH "\001" /* ASCII Start Of Header */
| ^~~~~~
include/linux/printk.h:486:25: note: in definition of macro 'printk_index_wrap'
486 | _p_func(_fmt, ##__VA_ARGS__); \
| ^~~~
include/linux/printk.h:557:9: note: in expansion of macro 'printk'
557 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~
include/linux/kern_levels.h:11:25: note: in expansion of macro 'KERN_SOH'
11 | #define KERN_ERR KERN_SOH "3" /* error conditions */
| ^~~~~~~~
include/linux/printk.h:557:16: note: in expansion of macro 'KERN_ERR'
557 | printk(KERN_ERR pr_fmt(fmt), ##__VA_ARGS__)
| ^~~~~~~~
drivers/iommu/io-pgtable-arm.c:882:25: note: in expansion of macro 'pr_err'
882 | pr_err("len = %zu, attr = %s, i =%d\n", length, attr, i);
| ^~~~~~
drivers/iommu/io-pgtable-arm.c: In function 'arm_lpae_dump_iova_prot':
>> drivers/iommu/io-pgtable-arm.c:911:32: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'long long unsigned int' [-Wformat=]
911 | seq_printf(s, "%lx - %lx lvl %d stage %s ",
| ~~^
| |
| long unsigned int
| %llx
vim +911 drivers/iommu/io-pgtable-arm.c
891
892 static size_t arm_lpae_dump_iova_prot(struct seq_file *s, struct io_pgtable_ops *ops,
893 unsigned long iova)
894 {
895 struct arm_lpae_io_pgtable *data = io_pgtable_ops_to_data(ops);
896 struct iova_to_phys_data d;
897 int ret;
898
899 struct io_pgtable_walk_data walk_data = {
900 .data = &d,
901 .visit = visit_iova_to_phys,
902 .addr = iova,
903 .end = iova + 1,
904 };
905
906 /* Only the mapped iova will be output */
907 ret = __arm_lpae_iopte_walk(data, &walk_data, data->pgd, data->start_level);
908 if (ret)
909 return ARM_LPAE_GRANULE(data);
910
> 911 seq_printf(s, "%lx - %lx lvl %d stage %s ",
912 iova, iova + ARM_LPAE_BLOCK_SIZE(d.lvl, data),
913 d.lvl, io_pgtable_fmt_names[data->iop.fmt]);
914
915 /* TODO: The dump prot is incomplete and will be supplemented later... */
916 dump_prot(s, d.pte);
917 seq_puts(s, "\n");
918
919 return ARM_LPAE_BLOCK_SIZE(d.lvl, data);
920 }
921 #endif
922
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-08-15 9:15 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-14 9:30 [PATCH 0/2] iommu: Add io_ptdump debug interface for iommu Qinxin Xia
2025-08-14 9:30 ` [PATCH 1/2] iommu/debug: Add IOMMU page table dump debug facility Qinxin Xia
2025-08-15 6:47 ` kernel test robot
2025-08-15 9:57 ` kernel test robot
2025-09-09 13:06 ` Will Deacon
2025-09-10 2:58 ` Qinxin Xia
2025-09-11 14:58 ` Will Deacon
2025-08-14 9:30 ` [PATCH 2/2] iommu/io-pgtable: Add ARM SMMUv3 page table dump support Qinxin Xia
2025-08-15 9:14 ` kernel test robot [this message]
2025-09-02 16:10 ` [PATCH 0/2] iommu: Add io_ptdump debug interface for iommu Jason Gunthorpe
2025-09-10 3:20 ` Qinxin Xia
2025-09-10 14:15 ` Jason Gunthorpe
2025-09-11 14:08 ` Qinxin Xia
2025-09-15 16:28 ` Jason Gunthorpe
2025-10-18 10:39 ` Qinxin Xia
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=202508151641.JHlhcDRk-lkp@intel.com \
--to=lkp@intel.com \
--cc=fanghao11@huawei.com \
--cc=iommu@lists.linux.dev \
--cc=jonathan.cameron@huawei.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxarm@huawei.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=prime.zeng@hisilicon.com \
--cc=robin.murphy@arm.com \
--cc=wangzhou1@hisilicon.com \
--cc=will@kernel.org \
--cc=xiaqinxin@huawei.com \
--cc=xuwei5@huawei.com \
--cc=yangyicong@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