mm/kmsan/hooks.c:372:6: error: too many arguments to function call, expected 3, have 4
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 05af764719214d6568adb55c8749dec295228da8 commit: 6eb1e769b2c13a33cb2ca694454a7561d3d72c0a [7677/9696] kmsan: convert kmsan_handle_dma to use physical addresses config: x86_64-buildonly-randconfig-002-20250917 (https://download.01.org/0day-ci/archive/20250917/[email protected]/config) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250917/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
>> mm/kmsan/hooks.c:372:6: error: too many arguments to function call, expected 3, have 4
371 | kmsan_handle_dma(sg_page(item), item->offset, item->length,
| ~~~~~~~~~~~~~~~~
372 | dir);
| ^~~
mm/kmsan/hooks.c:362:19: note: 'kmsan_handle_dma' declared here
362 | EXPORT_SYMBOL_GPL(kmsan_handle_dma);
| ^~~~~~~~~~~~~~~~
include/linux/export.h:90:48: note: expanded from macro 'EXPORT_SYMBOL_GPL'
90 | #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "GPL")
| ^~~
include/linux/export.h:86:54: note: expanded from macro '_EXPORT_SYMBOL'
86 | #define _EXPORT_SYMBOL(sym, license) __EXPORT_SYMBOL(sym, license, "")
| ^~~
include/linux/export.h:76:21: note: expanded from macro '__EXPORT_SYMBOL'
76 | extern typeof(sym) sym; \
| ^~~1 error generated.
vim +372 mm/kmsan/hooks.c
7ade4f10779cb4 Alexander Potapenko 2022-09-15 363
7ade4f10779cb4 Alexander Potapenko 2022-09-15 364 void kmsan_handle_dma_sg(struct scatterlist *sg, int nents,
7ade4f10779cb4 Alexander Potapenko 2022-09-15 365 enum dma_data_direction dir)
7ade4f10779cb4 Alexander Potapenko 2022-09-15 366 {
7ade4f10779cb4 Alexander Potapenko 2022-09-15 367 struct scatterlist *item;
7ade4f10779cb4 Alexander Potapenko 2022-09-15 368 int i;
7ade4f10779cb4 Alexander Potapenko 2022-09-15 369
7ade4f10779cb4 Alexander Potapenko 2022-09-15 370 for_each_sg(sg, item, nents, i)
7ade4f10779cb4 Alexander Potapenko 2022-09-15 371 kmsan_handle_dma(sg_page(item), item->offset, item->length,7ade4f10779cb4 Alexander Potapenko 2022-09-15 @372 dir);7ade4f10779cb4 Alexander Potapenko 2022-09-15 373 } 7ade4f10779cb4 Alexander Potapenko 2022-09-15 374
:::::: The code at line 372 was first introduced by commit
:::::: 7ade4f10779cb46f5c29ced9b7a41f68501cf0ed dma: kmsan: unpoison DMA mappings
:::::: TO: Alexander Potapenko <[email protected]> :::::: CC: Andrew Morton <[email protected]>
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Quoted 3 lines · kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 05af764719214d6568adb55c8749dec295228da8 commit: 6eb1e769b2c13a33cb2ca694454a7561d3d72c0a [7677/9696] kmsan: convert kmsan_handle_dma to use physical addresses
I think that it is old report.
The commit in the DMA tree has different SHA and correct kmsan_handle_dma() callers:b420b31f009f ("kmsan: convert kmsan_handle_dma to use physical addresses")
Thanks
Quoted 55 lines
config: x86_64-buildonly-randconfig-002-20250917 (https://download.01.org/0day-ci/archive/20250917/[email protected]/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project87f0227cb60147a26a1eeb4fb06e3b505e9c7261) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250917/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/All errors (new ones prefixed by >>):
Quoted 1 line
Quoted 1 line
mm/kmsan/hooks.c:372:6: error: too many arguments to function call, expected 3, have 4371 | kmsan_handle_dma(sg_page(item), item->offset, item->length, | ~~~~~~~~~~~~~~~~ 372 | dir); | ^~~ mm/kmsan/hooks.c:362:19: note: 'kmsan_handle_dma' declared here 362 | EXPORT_SYMBOL_GPL(kmsan_handle_dma); | ^~~~~~~~~~~~~~~~ include/linux/export.h:90:48: note: expanded from macro 'EXPORT_SYMBOL_GPL' 90 | #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "GPL") | ^~~ include/linux/export.h:86:54: note: expanded from macro '_EXPORT_SYMBOL' 86 | #define _EXPORT_SYMBOL(sym, license) __EXPORT_SYMBOL(sym, license, "") | ^~~ include/linux/export.h:76:21: note: expanded from macro '__EXPORT_SYMBOL' 76 | extern typeof(sym) sym; \ | ^~~1 error generated.
vim +372
mm/kmsan/hooks.c7ade4f10779cb4 Alexander Potapenko 2022-09-15 363 7ade4f10779cb4 Alexander Potapenko 2022-09-15 364 void kmsan_handle_dma_sg(struct scatterlist *sg, int nents, 7ade4f10779cb4 Alexander Potapenko 2022-09-15 365 enum dma_data_direction dir) 7ade4f10779cb4 Alexander Potapenko 2022-09-15 366 { 7ade4f10779cb4 Alexander Potapenko 2022-09-15 367 struct scatterlist *item; 7ade4f10779cb4 Alexander Potapenko 2022-09-15 368 int i; 7ade4f10779cb4 Alexander Potapenko 2022-09-15 369 7ade4f10779cb4 Alexander Potapenko 2022-09-15 370 for_each_sg(sg, item, nents, i) 7ade4f10779cb4 Alexander Potapenko 2022-09-15 371 kmsan_handle_dma(sg_page(item), item->offset, item->length,
7ade4f10779cb4Alexander Potapenko 2022-09-15 @372 dir);7ade4f10779cb4Alexander Potapenko 2022-09-15 373 }7ade4f10779cb4Alexander Potapenko 2022-09-15 374:::::: The code at line 372 was first introduced by commit
::::::7ade4f10779cb46f5c29ced9b7a41f68501cf0eddma: kmsan: unpoison DMA mappings:::::: TO: Alexander Potapenko <[email protected]> :::::: CC: Andrew Morton <[email protected]>
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Quoted 8 lines · Leon Romanovsky
Quoted 3 lines · kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 05af764719214d6568adb55c8749dec295228da8 commit: 6eb1e769b2c13a33cb2ca694454a7561d3d72c0a [7677/9696] kmsan: convert kmsan_handle_dma to use physical addressesI think that it is old report.
The commit in the DMA tree has different SHA and correctkmsan_handle_dma()callers:b420b31f009f("kmsan: convertkmsan_handle_dmato use physical addresses")
Ohh, I found it, sending the fix.
Thanks for the report.
Quoted 58 lines
Thanks
Quoted 55 lines
config: x86_64-buildonly-randconfig-002-20250917 (https://download.01.org/0day-ci/archive/20250917/[email protected]/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project87f0227cb60147a26a1eeb4fb06e3b505e9c7261) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250917/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/All errors (new ones prefixed by >>):
Quoted 1 line
Quoted 1 line
mm/kmsan/hooks.c:372:6: error: too many arguments to function call, expected 3, have 4371 | kmsan_handle_dma(sg_page(item), item->offset, item->length, | ~~~~~~~~~~~~~~~~ 372 | dir); | ^~~ mm/kmsan/hooks.c:362:19: note: 'kmsan_handle_dma' declared here 362 | EXPORT_SYMBOL_GPL(kmsan_handle_dma); | ^~~~~~~~~~~~~~~~ include/linux/export.h:90:48: note: expanded from macro 'EXPORT_SYMBOL_GPL' 90 | #define EXPORT_SYMBOL_GPL(sym) _EXPORT_SYMBOL(sym, "GPL") | ^~~ include/linux/export.h:86:54: note: expanded from macro '_EXPORT_SYMBOL' 86 | #define _EXPORT_SYMBOL(sym, license) __EXPORT_SYMBOL(sym, license, "") | ^~~ include/linux/export.h:76:21: note: expanded from macro '__EXPORT_SYMBOL' 76 | extern typeof(sym) sym; \ | ^~~1 error generated.
vim +372
mm/kmsan/hooks.c7ade4f10779cb4 Alexander Potapenko 2022-09-15 363 7ade4f10779cb4 Alexander Potapenko 2022-09-15 364 void kmsan_handle_dma_sg(struct scatterlist *sg, int nents, 7ade4f10779cb4 Alexander Potapenko 2022-09-15 365 enum dma_data_direction dir) 7ade4f10779cb4 Alexander Potapenko 2022-09-15 366 { 7ade4f10779cb4 Alexander Potapenko 2022-09-15 367 struct scatterlist *item; 7ade4f10779cb4 Alexander Potapenko 2022-09-15 368 int i; 7ade4f10779cb4 Alexander Potapenko 2022-09-15 369 7ade4f10779cb4 Alexander Potapenko 2022-09-15 370 for_each_sg(sg, item, nents, i) 7ade4f10779cb4 Alexander Potapenko 2022-09-15 371 kmsan_handle_dma(sg_page(item), item->offset, item->length,
7ade4f10779cb4Alexander Potapenko 2022-09-15 @372 dir);7ade4f10779cb4Alexander Potapenko 2022-09-15 373 }7ade4f10779cb4Alexander Potapenko 2022-09-15 374:::::: The code at line 372 was first introduced by commit
::::::7ade4f10779cb46f5c29ced9b7a41f68501cf0eddma: kmsan: unpoison DMA mappings:::::: TO: Alexander Potapenko <[email protected]> :::::: CC: Andrew Morton <[email protected]>
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki