tree: https://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git arm/renesas head: bad78b13e3057b4bbfe769e21c213dca7c4d51de commit: bad78b13e3057b4bbfe769e21c213dca7c4d51de [1/1] iommu/ipmmu-vmsa: Drop LPAE Kconfig dependency config: mn10300-allyesconfig (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout bad78b13e3057b4bbfe769e21c213dca7c4d51de # save the attached .config to linux build tree make.cross ARCH=mn10300
All warnings (new ones prefixed by >>): drivers/iommu/iommu.c: In function 'iommu_map': drivers/iommu/iommu.c:1313:3: warning: format '%zx' expects argument of type 'size_t', but argument 4 has type 'unsigned int' [-Wformat=] pr_err("unaligned: iova 0x%lx pa %pa size 0x%zx min_pagesz 0x%x\n", ^ In file included from include/linux/printk.h:277:0, from include/linux/kernel.h:13, from include/linux/list.h:8, from include/linux/kobject.h:20, from include/linux/device.h:17, from drivers/iommu/iommu.c:21: include/linux/dynamic_debug.h:64:16: warning: format '%zx' expects argument of type 'size_t', but argument 5 has type 'unsigned int' [-Wformat=] static struct _ddebug __aligned(8) \ ^ include/linux/dynamic_debug.h:76:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA' DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \ ^ include/linux/printk.h:283:2: note: in expansion of macro 'dynamic_pr_debug' dynamic_pr_debug(fmt, ##__VA_ARGS__) ^ >> drivers/iommu/iommu.c:1318:2: note: in expansion of macro 'pr_debug' pr_debug("map: iova 0x%lx pa %pa size 0x%zx\n", iova, &paddr, size); ^ include/linux/dynamic_debug.h:64:16: warning: format '%zx' expects argument of type 'size_t', but argument 5 has type 'unsigned int' [-Wformat=] static struct _ddebug __aligned(8) \ ^ include/linux/dynamic_debug.h:76:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA' DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \ ^ include/linux/printk.h:283:2: note: in expansion of macro 'dynamic_pr_debug' dynamic_pr_debug(fmt, ##__VA_ARGS__) ^ drivers/iommu/iommu.c:1323:3: note: in expansion of macro 'pr_debug' pr_debug("mapping: iova 0x%lx pa %pa pgsize 0x%zx\n", ^ drivers/iommu/iommu.c: In function 'iommu_unmap': drivers/iommu/iommu.c:1367:3: warning: format '%zx' expects argument of type 'size_t', but argument 3 has type 'unsigned int' [-Wformat=] pr_err("unaligned: iova 0x%lx size 0x%zx min_pagesz 0x%x\n", ^ In file included from include/linux/printk.h:277:0, from include/linux/kernel.h:13, from include/linux/list.h:8, from include/linux/kobject.h:20, from include/linux/device.h:17, from drivers/iommu/iommu.c:21: include/linux/dynamic_debug.h:64:16: warning: format '%zx' expects argument of type 'size_t', but argument 4 has type 'unsigned int' [-Wformat=] static struct _ddebug __aligned(8) \ ^ include/linux/dynamic_debug.h:76:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA' DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \ ^ include/linux/printk.h:283:2: note: in expansion of macro 'dynamic_pr_debug' dynamic_pr_debug(fmt, ##__VA_ARGS__) ^ drivers/iommu/iommu.c:1372:2: note: in expansion of macro 'pr_debug' pr_debug("unmap this: iova 0x%lx size 0x%zx\n", iova, size); ^ include/linux/dynamic_debug.h:64:16: warning: format '%zx' expects argument of type 'size_t', but argument 4 has type 'unsigned int' [-Wformat=] static struct _ddebug __aligned(8) \ ^ include/linux/dynamic_debug.h:76:2: note: in expansion of macro 'DEFINE_DYNAMIC_DEBUG_METADATA' DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, fmt); \ ^ include/linux/printk.h:283:2: note: in expansion of macro 'dynamic_pr_debug' dynamic_pr_debug(fmt, ##__VA_ARGS__) ^ drivers/iommu/iommu.c:1385:3: note: in expansion of macro 'pr_debug' pr_debug("unmapped: iova 0x%lx size 0x%zx\n", ^ vim +/pr_debug +1318 drivers/iommu/iommu.c a10315e5 drivers/iommu/iommu.c Joerg Roedel 2015-03-26 1302 return -EINVAL; a10315e5 drivers/iommu/iommu.c Joerg Roedel 2015-03-26 1303 7d3002cc drivers/iommu/iommu.c Ohad Ben-Cohen 2011-11-10 1304 /* find out the minimum page size supported */ 7d3002cc drivers/iommu/iommu.c Ohad Ben-Cohen 2011-11-10 1305 min_pagesz = 1 << __ffs(domain->ops->pgsize_bitmap); 7d3002cc drivers/iommu/iommu.c Ohad Ben-Cohen 2011-11-10 1306 7d3002cc drivers/iommu/iommu.c Ohad Ben-Cohen 2011-11-10 1307 /* 7d3002cc drivers/iommu/iommu.c Ohad Ben-Cohen 2011-11-10 1308 * both the virtual address and the physical one, as well as 7d3002cc drivers/iommu/iommu.c Ohad Ben-Cohen 2011-11-10 1309 * the size of the mapping, must be aligned (at least) to the 7d3002cc drivers/iommu/iommu.c Ohad Ben-Cohen 2011-11-10 1310 * size of the smallest page supported by the hardware 7d3002cc drivers/iommu/iommu.c Ohad Ben-Cohen 2011-11-10 1311 */ 7d3002cc drivers/iommu/iommu.c Ohad Ben-Cohen 2011-11-10 1312 if (!IS_ALIGNED(iova | paddr | size, min_pagesz)) { abedb049 drivers/iommu/iommu.c Fabio Estevam 2013-08-22 1313 pr_err("unaligned: iova 0x%lx pa %pa size 0x%zx min_pagesz 0x%x\n", 6197ca82 drivers/iommu/iommu.c Joe Perches 2013-06-23 1314 iova, &paddr, size, min_pagesz); 7d3002cc drivers/iommu/iommu.c Ohad Ben-Cohen 2011-11-10 1315 return -EINVAL; 7d3002cc drivers/iommu/iommu.c Ohad Ben-Cohen 2011-11-10 1316 } 7d3002cc drivers/iommu/iommu.c Ohad Ben-Cohen 2011-11-10 1317 abedb049 drivers/iommu/iommu.c Fabio Estevam 2013-08-22 @1318 pr_debug("map: iova 0x%lx pa %pa size 0x%zx\n", iova, &paddr, size); 7d3002cc drivers/iommu/iommu.c Ohad Ben-Cohen 2011-11-10 1319 7d3002cc drivers/iommu/iommu.c Ohad Ben-Cohen 2011-11-10 1320 while (size) { bd13969b drivers/iommu/iommu.c Alex Williamson 2013-06-17 1321 size_t pgsize = iommu_pgsize(domain, iova | paddr, size); 7d3002cc drivers/iommu/iommu.c Ohad Ben-Cohen 2011-11-10 1322 abedb049 drivers/iommu/iommu.c Fabio Estevam 2013-08-22 1323 pr_debug("mapping: iova 0x%lx pa %pa pgsize 0x%zx\n", 6197ca82 drivers/iommu/iommu.c Joe Perches 2013-06-23 1324 iova, &paddr, pgsize); cefc53c7 drivers/base/iommu.c Joerg Roedel 2010-01-08 1325 7d3002cc drivers/iommu/iommu.c Ohad Ben-Cohen 2011-11-10 1326 ret = domain->ops->map(domain, iova, paddr, pgsize, prot); :::::: The code at line 1318 was first introduced by commit :::::: abedb049c52ef77ce7b11b915a4e7e6abd3985cb iommu: No need to pass '0x' when '%pa' is used :::::: TO: Fabio Estevam <fabio.este...@freescale.com> :::::: CC: Joerg Roedel <j...@8bytes.org> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
.config.gz
Description: Binary data
_______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu