Skip to content

Commit 7ba594d

Browse files
arndbakpm00
authored andcommitted
kmsan: export kmsan_handle_urb
USB support can be in a loadable module, and this causes a link failure with KMSAN: ERROR: modpost: "kmsan_handle_urb" [drivers/usb/core/usbcore.ko] undefined! Export the symbol so it can be used by this module. Link: https://lkml.kernel.org/r/[email protected] Fixes: 553a801 ("kmsan: handle memory sent to/from USB") Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Alexander Potapenko <[email protected]> Cc: Dmitry Vyukov <[email protected]> Cc: Marco Elver <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent aaa746a commit 7ba594d

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
@@ -260,6 +260,7 @@ void kmsan_handle_urb(const struct urb *urb, bool is_out)
260260
urb->transfer_buffer_length,
261261
/*checked*/ false);
262262
}
263+
EXPORT_SYMBOL_GPL(kmsan_handle_urb);
263264

264265
static void kmsan_handle_dma_page(const void *addr, size_t size,
265266
enum dma_data_direction dir)

0 commit comments

Comments
 (0)