Skip to content

Commit 19fac3c

Browse files
Sebastian Andrzej Siewiorakpm00
authored andcommitted
dma: kmsan: export kmsan_handle_dma() for modules
kmsan_handle_dma() is used by virtio_ring() which can be built as a module. kmsan_handle_dma() needs to be exported otherwise building the virtio_ring fails. Export kmsan_handle_dma for modules. Link: https://lkml.kernel.org/r/[email protected] Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Fixes: 7ade4f1 ("dma: kmsan: unpoison DMA mappings") Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Cc: Alexander Potapenko <[email protected]> Cc: Dmitriy Vyukov <[email protected]> Cc: Macro Elver <[email protected]> Cc: Peter Zijlstra (Intel) <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 04ec365 commit 19fac3c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mm/kmsan/hooks.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ void kmsan_handle_dma(struct page *page, size_t offset, size_t size,
357357
size -= to_go;
358358
}
359359
}
360+
EXPORT_SYMBOL_GPL(kmsan_handle_dma);
360361

361362
void kmsan_handle_dma_sg(struct scatterlist *sg, int nents,
362363
enum dma_data_direction dir)

0 commit comments

Comments
 (0)