Skip to content

Commit ef3d979

Browse files
rleonmszyprow
authored andcommitted
kmsan: fix missed kmsan_handle_dma() signature conversion
kmsan_handle_dma_sg() has call to kmsan_handle_dma() function which was missed during conversion to physical addresses. Update that caller too and fix the following compilation error: 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); Fixes: 6eb1e76 ("kmsan: convert kmsan_handle_dma to use physical addresses") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Leon Romanovsky <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Reviewed-by: Alexander Potapenko <[email protected]> Signed-off-by: Marek Szyprowski <[email protected]> Link: https://lore.kernel.org/r/4b2d7d0175b30177733bbbd42bf979d77eb73c29.1758090947.git.leon@kernel.org
1 parent ec818ca commit ef3d979

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mm/kmsan/hooks.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,7 @@ void kmsan_handle_dma_sg(struct scatterlist *sg, int nents,
368368
int i;
369369

370370
for_each_sg(sg, item, nents, i)
371-
kmsan_handle_dma(sg_page(item), item->offset, item->length,
372-
dir);
371+
kmsan_handle_dma(sg_phys(item), item->length, dir);
373372
}
374373

375374
/* Functions from kmsan-checks.h follow. */

0 commit comments

Comments
 (0)