]> www.infradead.org Git - users/hch/misc.git/commit
dma: kmsan: export kmsan_handle_dma() for modules
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 18 Feb 2025 09:14:11 +0000 (10:14 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 6 Mar 2025 05:36:14 +0000 (21:36 -0800)
commit19fac3c93991502a22c5132824c40b6a2e64b136
treed3d0de549173116a111f5391295572642c23d3b3
parent04ec365e3fdf136ba5f9053b02fb6c3368a22e83
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: 7ade4f10779c ("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>
mm/kmsan/hooks.c