diff options
| author | Alexander Viro <viro@parcelfarce.linux.theplanet.co.uk> | 2004-10-21 04:04:05 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-10-21 04:04:05 -0700 |
| commit | 5549f1943cd5d9dacc7d1a458cd449ade35c2868 (patch) | |
| tree | fc8231ad4a95d34b6d62d0986b54ba2f99b8f4a7 | |
| parent | 99840c242d6434cc8508b809ddf17aea11b572d8 (diff) | |
[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: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
| -rw-r--r-- | include/asm-x86_64/uaccess.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-x86_64/uaccess.h b/include/asm-x86_64/uaccess.h index a7b9d33053c4..406102dbf298 100644 --- a/include/asm-x86_64/uaccess.h +++ b/include/asm-x86_64/uaccess.h @@ -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))) { \ |
