Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=01bebc66793f2cc65104452dc319a8a99f005934
Commit:     01bebc66793f2cc65104452dc319a8a99f005934
Parent:     5e0373b8e449b0c72495a6d8401c53f678b71988
Author:     Atsushi Nemoto <[EMAIL PROTECTED]>
AuthorDate: Fri Jul 13 23:51:38 2007 +0900
Committer:  Ralf Baechle <[EMAIL PROTECTED]>
CommitDate: Fri Jul 13 17:40:01 2007 +0100

    [MIPS] Workaround for a sparse warning in include/asm-mips/compat.h
    
    Cast to a __user pointer via "unsigned long" to get rid of this warning:
    
    include2/asm/compat.h:135:10: warning: cast adds address space to 
expression (<asn:1>)
    
    Signed-off-by: Atsushi Nemoto <[EMAIL PROTECTED]>
    Signed-off-by: Ralf Baechle <[EMAIL PROTECTED]>
---
 include/asm-mips/compat.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/asm-mips/compat.h b/include/asm-mips/compat.h
index 432653d..67c3f8e 100644
--- a/include/asm-mips/compat.h
+++ b/include/asm-mips/compat.h
@@ -132,7 +132,8 @@ typedef u32         compat_uptr_t;
 
 static inline void __user *compat_ptr(compat_uptr_t uptr)
 {
-       return (void __user *)(long)uptr;
+       /* cast to a __user pointer via "unsigned long" makes sparse happy */
+       return (void __user *)(unsigned long)(long)uptr;
 }
 
 static inline compat_uptr_t ptr_to_compat(void __user *uptr)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to