linux/drivers/iommu
Isaac J. Manjarres b492fa8a50 ANDROID: Fix compilation warning in __iommu_map_pages()
Commit 08d46858c7 ("FROMLIST: iommu: Add support for the map_pages()
callback") used the wrong format specifier for the count variable in
__iommu_map_pages(), and introduced the following compilation warning:

   drivers/iommu/iommu.c: In function '__iommu_map_pages':
>> drivers/iommu/iommu.c:7:24: warning: format '%ld' expects argument of
>> type 'long int', but argument 6 has type 'size_t' {aka 'unsigned
>> int'} [-Wformat=]
       7 | #define pr_fmt(fmt)    "iommu: " fmt
         |                        ^~~~~~~~~
   include/linux/dynamic_debug.h:129:15: note: in expansion of macro
'pr_fmt'
     129 |   func(&id, ##__VA_ARGS__);  \
         |               ^~~~~~~~~~~
   include/linux/dynamic_debug.h:147:2: note: in expansion of macro
'__dynamic_func_call'
     147 |  __dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func,
         |  ^~~~~~~~~~~~~~~~~~~
   include/linux/dynamic_debug.h:157:2: note: in expansion of macro
'_dynamic_func_call'
     157 |  _dynamic_func_call(fmt, __dynamic_pr_debug,  \
         |  ^~~~~~~~~~~~~~~~~~
   include/linux/printk.h:424:2: note: in expansion of macro
'dynamic_pr_debug'
     424 |  dynamic_pr_debug(fmt, ##__VA_ARGS__)
         |  ^~~~~~~~~~~~~~~~
   drivers/iommu/iommu.c:2398:2: note: in expansion of macro 'pr_debug'
    2398 |  pr_debug("mapping: iova 0x%lx pa %pa pgsize 0x%zx count
%ld\n",
         |  ^~~~~~~~
   drivers/iommu/iommu.c:2398:60: note: format string is defined here
    2398 |  pr_debug("mapping: iova 0x%lx pa %pa pgsize 0x%zx count
%ld\n",

Fix by using the correct format specifier for the count variable.

Bug: 178537788
Fixes: 08d46858c7 ("FROMLIST: iommu: Add support for the map_pages() callback")
Reported-by: kernel test robot <lkp@intel.com>
Change-Id: Idc116f559c89e7da8a2b7ae5d8ce173923424588
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
2021-04-13 11:27:32 +00:00
..
amd iommu/amd: Fix performance counter initialization 2021-03-17 17:06:24 +01:00
arm FROMLIST: iommu/arm-smmu: Implement the map_pages() IOMMU driver callback 2021-04-09 21:09:07 -07:00
intel iommu/vt-d: Clear PRQ overflow only when PRQ is empty 2021-03-17 17:06:23 +01:00
dma-iommu.c ANDROID: iommu/dma: Add support for DMA_ATTR_SYS_CACHE_ONLY_NWA 2021-01-13 18:27:04 +00:00
exynos-iommu.c iommu/exynos: add missing put_device() call in exynos_iommu_of_xlate() 2020-09-24 10:48:29 +02:00
fsl_pamu_domain.c iommu/pamu: Use dev_iommu_priv_get/set() 2020-06-30 11:59:48 +02:00
fsl_pamu_domain.h
fsl_pamu.c iommu/pamu: Replace use of kzfree with kfree_sensitive 2020-09-18 10:59:04 +02:00
fsl_pamu.h
hyperv-iommu.c x86_ioapic_Consolidate_IOAPIC_allocation 2020-09-16 16:52:32 +02:00
io-pgtable-arm-v7s.c FROMLIST: iommu/io-pgtable-arm-v7s: Implement arm_v7s_map_pages() 2021-04-09 21:09:07 -07:00
io-pgtable-arm.c ANDROID: iommu/io-pgtable-arm: Fix arguments for __arm_lpae_map() 2021-04-12 17:13:52 -07:00
io-pgtable-arm.h iommu/io-pgtable-arm: Move some definitions to a header 2020-09-28 23:48:06 +01:00
io-pgtable.c
ioasid.c
iommu-debugfs.c
iommu-sysfs.c
iommu-traces.c
iommu.c ANDROID: Fix compilation warning in __iommu_map_pages() 2021-04-13 11:27:32 +00:00
iova.c Merge 531d29b0b6 ("Merge tag 'iommu-updates-v5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu") into android-mainline 2020-10-25 16:21:39 +01:00
ipmmu-vmsa.c UPSTREAM: iommu/io-pgtable: Remove tlb_flush_leaf 2021-03-24 12:45:09 -07:00
irq_remapping.c iommu/irq_remapping: Consolidate irq domain lookup 2020-09-16 16:52:30 +02:00
irq_remapping.h iommu/irq_remapping: Consolidate irq domain lookup 2020-09-16 16:52:30 +02:00
Kconfig Merge 531d29b0b6 ("Merge tag 'iommu-updates-v5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu") into android-mainline 2020-10-25 16:21:39 +01:00
Makefile More Arm SMMU updates for 5.9 2020-07-29 14:47:37 +02:00
msm_iommu_hw-8xxx.h
msm_iommu.c UPSTREAM: iommu/msm: Hook up iotlb_sync_map 2021-03-24 12:45:16 -07:00
msm_iommu.h
mtk_iommu_v1.c iommu/mediatek: Do no use dev->archdata.iommu 2020-06-30 11:59:48 +02:00
mtk_iommu.c UPSTREAM: iommu/mediatek: Fix error code in probe() 2021-03-24 12:45:16 -07:00
mtk_iommu.h UPSTREAM: iommu/mediatek: Add mt8192 support 2021-03-24 12:45:15 -07:00
of_iommu.c of/device: Add input id to of_dma_configure() 2020-07-28 15:51:32 +01:00
omap-iommu-debug.c iommu/omap: Check for failure of a call to omap_iommu_dump_ctx 2020-07-22 15:02:33 +02:00
omap-iommu.c Merge branches 'arm/renesas', 'arm/qcom', 'arm/mediatek', 'arm/omap', 'arm/exynos', 'arm/smmu', 'ppc/pamu', 'x86/vt-d', 'x86/amd' and 'core' into next 2020-07-29 14:42:00 +02:00
omap-iommu.h
omap-iopgtable.h
rockchip-iommu.c iommu/rockchip: Use dev_iommu_priv_get/set() 2020-06-30 11:59:48 +02:00
s390-iommu.c s390 updates for the 5.8 merge window 2020-06-08 12:05:31 -07:00
sun50i-iommu.c iommu/sun50i: Fix set-but-not-used variable warning 2020-09-04 13:39:45 +02:00
tegra-gart.c BACKPORT: UPSTREAM: iommu: Add iova and size as parameters in iotlb_sync_map 2021-03-24 12:45:09 -07:00
tegra-smmu.c iommu/tegra-smmu: Allow to group clients in same swgroup 2020-09-24 12:32:32 +02:00
virtio-iommu.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00