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

MIPS: IP27: Fix GCC 4.6.0 build error.

CC arch/mips/sgi-ip27/ip27-hubio.o
arch/mips/sgi-ip27/ip27-hubio.c: In function 'hub_pio_map':
arch/mips/sgi-ip27/ip27-hubio.c:32:20: error: variable 'junk' set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

+1 -2
+1 -2
arch/mips/sgi-ip27/ip27-hubio.c
··· 29 29 unsigned long xtalk_addr, size_t size) 30 30 { 31 31 nasid_t nasid = COMPACT_TO_NASID_NODEID(cnode); 32 - volatile hubreg_t junk; 33 32 unsigned i; 34 33 35 34 /* use small-window mapping if possible */ ··· 63 64 * after we write it. 64 65 */ 65 66 IIO_ITTE_PUT(nasid, i, HUB_PIO_MAP_TO_MEM, widget, xtalk_addr); 66 - junk = HUB_L(IIO_ITTE_GET(nasid, i)); 67 + (void) HUB_L(IIO_ITTE_GET(nasid, i)); 67 68 68 69 return NODE_BWIN_BASE(nasid, widget) + (xtalk_addr % BWIN_SIZE); 69 70 }