[MIPS] Fix compiler warnings (field width, unused variable) Fix following warnings: linux/arch/mips/kernel/setup.c:432: warning: field width is not type int (arg 2) linux/arch/mips/kernel/setup.c:432: warning: field width is not type int (arg 4) linux/arch/mips/kernel/syscall.c:279: warning: unused variable `len' linux/arch/mips/kernel/syscall.c:280: warning: unused variable `name' linux/arch/mips/math-emu/dp_fint.c:32: warning: unused variable `xc' linux/arch/mips/math-emu/dp_flong.c:32: warning: unused variable `xc' linux/arch/mips/math-emu/sp_fint.c:32: warning: unused variable `xc' linux/arch/mips/math-emu/sp_flong.c:32: warning: unused variable `xc' (original patch by Atsushi, slight changes to the setup.c part by me.) 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 ecf52d3c 460c0422

+21 -11
+8 -5
arch/mips/kernel/setup.c
··· 419 419 #ifdef CONFIG_BLK_DEV_INITRD 420 420 initrd_below_start_ok = 1; 421 421 if (initrd_start) { 422 - unsigned long initrd_size = ((unsigned char *)initrd_end) - ((unsigned char *)initrd_start); 422 + unsigned long initrd_size = ((unsigned char *)initrd_end) - 423 + ((unsigned char *)initrd_start); 424 + const int width = sizeof(long) * 2; 425 + 423 426 printk("Initial ramdisk at: 0x%p (%lu bytes)\n", 424 427 (void *)initrd_start, initrd_size); 425 428 426 429 if (CPHYSADDR(initrd_end) > PFN_PHYS(max_low_pfn)) { 427 430 printk("initrd extends beyond end of memory " 428 431 "(0x%0*Lx > 0x%0*Lx)\ndisabling initrd\n", 429 - sizeof(long) * 2, 430 - (unsigned long long)CPHYSADDR(initrd_end), 431 - sizeof(long) * 2, 432 - (unsigned long long)PFN_PHYS(max_low_pfn)); 432 + width, 433 + (unsigned long long) CPHYSADDR(initrd_end), 434 + width, 435 + (unsigned long long) PFN_PHYS(max_low_pfn)); 433 436 initrd_start = initrd_end = 0; 434 437 initrd_reserve_bootmem = 0; 435 438 }
+1 -2
arch/mips/kernel/syscall.c
··· 276 276 277 277 asmlinkage int _sys_sysmips(int cmd, long arg1, int arg2, int arg3) 278 278 { 279 - int tmp, len; 280 - char __user *name; 279 + int tmp; 281 280 282 281 switch(cmd) { 283 282 case MIPS_ATOMIC_SET:
+3 -1
arch/mips/math-emu/dp_fint.c
··· 29 29 30 30 ieee754dp ieee754dp_fint(int x) 31 31 { 32 - COMPXDP; 32 + u64 xm; 33 + int xe; 34 + int xs; 33 35 34 36 CLEARCX; 35 37
+3 -1
arch/mips/math-emu/dp_flong.c
··· 29 29 30 30 ieee754dp ieee754dp_flong(s64 x) 31 31 { 32 - COMPXDP; 32 + u64 xm; 33 + int xe; 34 + int xs; 33 35 34 36 CLEARCX; 35 37
+3 -1
arch/mips/math-emu/sp_fint.c
··· 29 29 30 30 ieee754sp ieee754sp_fint(int x) 31 31 { 32 - COMPXSP; 32 + unsigned xm; 33 + int xe; 34 + int xs; 33 35 34 36 CLEARCX; 35 37
+3 -1
arch/mips/math-emu/sp_flong.c
··· 29 29 30 30 ieee754sp ieee754sp_flong(s64 x) 31 31 { 32 - COMPXDP; /* <--- need 64-bit mantissa temp */ 32 + u64 xm; /* <--- need 64-bit mantissa temp */ 33 + int xe; 34 + int xs; 33 35 34 36 CLEARCX; 35 37