Skip to content

Commit f53b8a1

Browse files
committed
dma: kmsan: export kmsan_handle_dma() for modules
JIRA: https://issues.redhat.com/browse/RHEL-116573 Upstream Status: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git commit 19fac3c Author: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Date: Tue Feb 18 10:14:11 2025 +0100 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/20250218091411.MMS3wBN9@linutronix.de Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202502150634.qjxwSeJR-lkp@intel.com/ Fixes: 7ade4f1 ("dma: kmsan: unpoison DMA mappings") Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Cc: Alexander Potapenko <glider@google.com> Cc: Dmitriy Vyukov <dvyukov@google.com> Cc: Macro Elver <elver@google.com> Cc: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Eder Zulian <ezulian@redhat.com>
1 parent ba79ff1 commit f53b8a1

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)