[PATCH] fix sparse warnings from {asm,net}/checksum.h
[linux-drm-fsl-dcu.git] / include / asm-x86_64 / uaccess.h
index c0eac519840b2d1d15a4c0751d20293649bbe9b0..8079e29c14fd4ca1212bea28ac313b523a67b5d3 100644 (file)
  * Uhhuh, this needs 65-bit arithmetic. We have a carry..
  */
 #define __range_not_ok(addr,size) ({ \
-       unsigned long flag,sum; \
+       unsigned long flag,roksum; \
        __chk_user_ptr(addr); \
        asm("# range_ok\n\r" \
                "addq %3,%1 ; sbbq %0,%0 ; cmpq %1,%4 ; sbbq $0,%0"  \
-               :"=&r" (flag), "=r" (sum) \
+               :"=&r" (flag), "=r" (roksum) \
                :"1" (addr),"g" ((long)(size)),"g" (current_thread_info()->addr_limit.seg)); \
        flag; })