Commit 5549f194 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] amd64 uaccess.h annotations

sparse complains on casts from long to pointers; unsigned long is OK, though,
and it's OK with all numeric cases.
Signed-off-by: default avatarAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 99840c24
......@@ -102,7 +102,7 @@ extern void __get_user_8(void);
/* Careful: we have to cast the result to the type of the pointer for sign reasons */
#define get_user(x,ptr) \
({ long __val_gu; \
({ unsigned long __val_gu; \
int __ret_gu; \
__chk_user_ptr(ptr); \
switch(sizeof (*(ptr))) { \
......
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