Skip to content

Commit aaa746a

Browse files
arndbakpm00
authored andcommitted
kmsan: include linux/vmalloc.h
This is needed for the vmap/vunmap declarations: mm/kmsan/kmsan_test.c:316:9: error: implicit declaration of function 'vmap' is invalid in C99 [-Werror,-Wimplicit-function-declaration] vbuf = vmap(pages, npages, VM_MAP, PAGE_KERNEL); ^ mm/kmsan/kmsan_test.c:316:29: error: use of undeclared identifier 'VM_MAP' vbuf = vmap(pages, npages, VM_MAP, PAGE_KERNEL); ^ mm/kmsan/kmsan_test.c:322:3: error: implicit declaration of function 'vunmap' is invalid in C99 [-Werror,-Wimplicit-function-declaration] vunmap(vbuf); ^ Link: https://lkml.kernel.org/r/[email protected] Fixes: 8ed691b ("kmsan: add tests for KMSAN") 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 38ce7c9 commit aaa746a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mm/kmsan/kmsan_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <linux/spinlock.h>
2323
#include <linux/string.h>
2424
#include <linux/tracepoint.h>
25+
#include <linux/vmalloc.h>
2526
#include <trace/events/printk.h>
2627

2728
static DEFINE_PER_CPU(int, per_cpu_var);

0 commit comments

Comments
 (0)