Commit 7e95a016 authored by Atsushi Nemoto's avatar Atsushi Nemoto Committed by Ralf Baechle

[MIPS] Change names of local variables to silence sparse

This patch is an workaround for these sparse warnings:

linux/include/linux/calc64.h:25:17: warning: symbol '__quot' shadows an earlier one
linux/include/linux/calc64.h:25:17: originally declared here
linux/include/linux/calc64.h:25:17: warning: symbol '__mod' shadows an earlier one
linux/include/linux/calc64.h:25:17: originally declared here
Signed-off-by: default avatarAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 62b39635
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
*/ */
#define do_div64_32(res, high, low, base) ({ \ #define do_div64_32(res, high, low, base) ({ \
unsigned long __quot, __mod; \ unsigned long __quot32, __mod32; \
unsigned long __cf, __tmp, __tmp2, __i; \ unsigned long __cf, __tmp, __tmp2, __i; \
\ \
__asm__(".set push\n\t" \ __asm__(".set push\n\t" \
...@@ -48,12 +48,13 @@ ...@@ -48,12 +48,13 @@
"bnez %4, 0b\n\t" \ "bnez %4, 0b\n\t" \
" srl %5, %1, 0x1f\n\t" \ " srl %5, %1, 0x1f\n\t" \
".set pop" \ ".set pop" \
: "=&r" (__mod), "=&r" (__tmp), "=&r" (__quot), "=&r" (__cf), \ : "=&r" (__mod32), "=&r" (__tmp), \
"=&r" (__quot32), "=&r" (__cf), \
"=&r" (__i), "=&r" (__tmp2) \ "=&r" (__i), "=&r" (__tmp2) \
: "Jr" (base), "0" (high), "1" (low)); \ : "Jr" (base), "0" (high), "1" (low)); \
\ \
(res) = __quot; \ (res) = __quot32; \
__mod; }) __mod32; })
#define do_div(n, base) ({ \ #define do_div(n, base) ({ \
unsigned long long __quot; \ unsigned long long __quot; \
......
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