Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Atsushi Nemoto and committed by
Ralf Baechle
7e95a016 62b39635

+5 -4
+5 -4
include/asm-mips/div64.h
··· 20 20 */ 21 21 22 22 #define do_div64_32(res, high, low, base) ({ \ 23 - unsigned long __quot, __mod; \ 23 + unsigned long __quot32, __mod32; \ 24 24 unsigned long __cf, __tmp, __tmp2, __i; \ 25 25 \ 26 26 __asm__(".set push\n\t" \ ··· 48 48 "bnez %4, 0b\n\t" \ 49 49 " srl %5, %1, 0x1f\n\t" \ 50 50 ".set pop" \ 51 - : "=&r" (__mod), "=&r" (__tmp), "=&r" (__quot), "=&r" (__cf), \ 51 + : "=&r" (__mod32), "=&r" (__tmp), \ 52 + "=&r" (__quot32), "=&r" (__cf), \ 52 53 "=&r" (__i), "=&r" (__tmp2) \ 53 54 : "Jr" (base), "0" (high), "1" (low)); \ 54 55 \ 55 - (res) = __quot; \ 56 - __mod; }) 56 + (res) = __quot32; \ 57 + __mod32; }) 57 58 58 59 #define do_div(n, base) ({ \ 59 60 unsigned long long __quot; \