Commit 54cdede0 authored by Ben Dooks's avatar Ben Dooks Committed by Palmer Dabbelt

riscv: vdso: include vdso/vsyscall.h for vdso_data

Add include of <vdso/vsyscall.h> to pull in the defition of vdso_data
to remove the following sparse warning:

arch/riscv/kernel/vdso.c:39:18: warning: symbol 'vdso_data' was not declared. Should it be static?
Signed-off-by: default avatarBen Dooks <ben.dooks@codethink.co.uk>
Link: https://lore.kernel.org/r/20230616114357.159601-1-ben.dooks@codethink.co.ukSigned-off-by: default avatarPalmer Dabbelt <palmer@rivosinc.com>
parent 5c93c4c7
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
#include <asm/vdso.h> #include <asm/vdso.h>
#include <linux/time_namespace.h> #include <linux/time_namespace.h>
#include <vdso/datapage.h> #include <vdso/datapage.h>
#include <vdso/vsyscall.h>
enum vvar_pages { enum vvar_pages {
VVAR_DATA_PAGE_OFFSET, VVAR_DATA_PAGE_OFFSET,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment