mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[PATCH] fix sparse warnings from {asm,net}/checksum.h
Rename the variable "sum" in the __range_ok macros to avoid name collisions causing lots of "symbol shadows an earlier one" warnings by sparse. Signed-off-by: Tilman Schmidt <[email protected]> Cc: Russell King <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Hirokazu Takata <[email protected]> Acked-by: Ian Molton <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
3db5db4fcd
commit
16cf5b39b8
5 changed files with 10 additions and 10 deletions
|
|
@ -76,10 +76,10 @@ static inline void set_fs(mm_segment_t fs)
|
|||
|
||||
/* We use 33-bit arithmetic here... */
|
||||
#define __range_ok(addr,size) ({ \
|
||||
unsigned long flag, sum; \
|
||||
unsigned long flag, roksum; \
|
||||
__chk_user_ptr(addr); \
|
||||
__asm__("adds %1, %2, %3; sbcccs %1, %1, %0; movcc %0, #0" \
|
||||
: "=&r" (flag), "=&r" (sum) \
|
||||
: "=&r" (flag), "=&r" (roksum) \
|
||||
: "r" (addr), "Ir" (size), "0" (current_thread_info()->addr_limit) \
|
||||
: "cc"); \
|
||||
flag; })
|
||||
|
|
|
|||
Loading…
Reference in a new issue