Skip to content
Snippets Groups Projects
Commit 3d133406 authored by Mathias Krause's avatar Mathias Krause Committed by Ingo Molnar
Browse files

x86/vdso: Add __user annotation to VDSO32_SYMBOL


The address calculated by VDSO32_SYMBOL() is a pointer into
userland. Add the __user annotation to fix related sparse
warnings in its users.

Signed-off-by: default avatarMathias Krause <minipli@googlemail.com>
Cc: Andy Lutomirski <luto@MIT.EDU>
Link: http://lkml.kernel.org/r/1346621506-30857-3-git-send-email-minipli@googlemail.com


Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
parent f0002627
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,8 @@ extern const char VDSO32_PRELINK[];
#define VDSO32_SYMBOL(base, name) \
({ \
extern const char VDSO32_##name[]; \
(void *)(VDSO32_##name - VDSO32_PRELINK + (unsigned long)(base)); \
(void __user *)(VDSO32_##name - VDSO32_PRELINK + \
(unsigned long)(base)); \
})
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment