tree:
https://android.googlesource.com/kernel/common android12-5.10
head: 92de566762db61b138765a26e4afaacc7d7f7816
commit: 08d46858c709eb584f7ecd5f385ba32dd739d39d [7514/7527] FROMLIST: iommu: Add support
for the map_pages() callback
config: i386-randconfig-s002-20210411 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-279-g6d5d9b42-dirty
git remote add android-common
https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android12-5.10
git checkout 08d46858c709eb584f7ecd5f385ba32dd739d39d
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
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, ##__VA_ARGS__)
| ^~~~~~~~~~~~~~~~~~~
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",
| ~~^
| |
| long int
| %d
vim +7 drivers/iommu/iommu.c
92e7066fde31d5 Joerg Roedel 2015-05-28 @7 #define pr_fmt(fmt) "iommu: "
fmt
7d3002cc8c160d Ohad Ben-Cohen 2011-11-10 8
:::::: The code at line 7 was first introduced by commit
:::::: 92e7066fde31d5ac48a9bccc12d3063d251dd079 iommu: Remove function name from pr_fmt()
:::::: TO: Joerg Roedel <jroedel(a)suse.de>
:::::: CC: Joerg Roedel <jroedel(a)suse.de>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org