kmsan: include linux/vmalloc.h
Subsystems (2)
PATCH 1/1 kmsan: include linux/vmalloc.h
From: Arnd Bergmann <[email protected]>
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);
^Fixes 8ed691b02ade ("kmsan: add tests for KMSAN")
Signed-off-by Arnd Bergmann <[email protected]>
--- mm/kmsan/kmsan_test.c | 1 + 1 file changed, 1 insertion(+)
mm/kmsan/kmsan_test.c +1 -0
@@ -22,6 +22,7 @@#include <linux/spinlock.h> #include <linux/string.h> #include <linux/tracepoint.h> +#include <linux/vmalloc.h> #include <trace/events/printk.h> static DEFINE_PER_CPU(int, per_cpu_var);
Signature · 1 line
2.35.1
Quoted 15 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
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); ^
Quoted 2 lines
Fixes 8ed691b02ade ("kmsan: add tests for KMSAN")Signed-off-by Arnd Bergmann <[email protected]>
Reviewed-by Alexander Potapenko <[email protected]>
Quoted 19 lines
--- mm/kmsan/kmsan_test.c | 1 + 1 file changed, 1 insertion(+)mm/kmsan/kmsan_test.c +1
-1@@ -22,6 +22,7 @@#include <linux/spinlock.h> #include <linux/string.h> #include <linux/tracepoint.h> +#include <linux/vmalloc.h> #include <trace/events/printk.h> static DEFINE_PER_CPU(int, per_cpu_var); --2.35.1
Signature · 10 lines
Alexander Potapenko Software Engineer Google Germany GmbH Erika-Mann-Straße, 33 80636 München Geschäftsführer: Paul Manicle, Liana Sebastian Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg