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

Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/upstream-linus

* 'upstream' of git://git.linux-mips.org/pub/scm/upstream-linus: (28 commits)
MIPS: Alchemy: fix xxs1500 build error
MIPS: Invalidate old TLB mappings when updating huge page PTEs.
MIPS: Hibernation: Fixes for PAGE_SIZE >= 64kb
MIPS: JZ4740: Set one-shot feature flag for the clockevent
MIPS: JZ4740: Export symbols to the watchdog driver module
MIPS: JZ4740: Fix GCC 4.6.0 build error.
MIPS: Audit: Fix success success argument pass to audit_syscall_exit
MIPS: Fix calc_vmlinuz_load_addr build warnings.
MIPS: Alchemy: Fix GCC 4.6.0 build error.
MIPS: Document former use of timerfd(2) syscall number.
MIPS: IP27: Fix GCC 4.6.0 build error.
MIPS: IP27: Fix GCC 4.6.0 build error.
MIPS: bcm63xx: Fix header_crc comment in bcm963xx_tag.h
MIPS: Octeon: Guard the Kconfig body with CPU_CAVIUM_OCTEON
MIPS: Octeon: Cleanup Kconfig IRQ_CPU* symbols.
MIPS: Rename .data..mostly and properly handle it in linker script
MIPS: MSP: Fix build error
MIPS: MSP71xx: Fix typo in msp_per_irq_controller
MIPS: Loongson: Fix GCC 2.6.0 build error.
MIPS: Jazz: Fix GCC 4.6.0 build error
...

+80 -97
-5
arch/mips/Kconfig
··· 997 997 config IRQ_GIC 998 998 bool 999 999 1000 - config IRQ_CPU_OCTEON 1001 - bool 1002 - 1003 1000 config MIPS_BOARDS_GEN 1004 1001 bool 1005 1002 ··· 1356 1359 config CPU_CAVIUM_OCTEON 1357 1360 bool "Cavium Octeon processor" 1358 1361 depends on SYS_HAS_CPU_CAVIUM_OCTEON 1359 - select IRQ_CPU 1360 - select IRQ_CPU_OCTEON 1361 1362 select CPU_HAS_PREFETCH 1362 1363 select CPU_SUPPORTS_64BIT_KERNEL 1363 1364 select SYS_SUPPORTS_SMP
+33 -28
arch/mips/alchemy/devboards/db1x00/board_setup.c
··· 127 127 void __init board_setup(void) 128 128 { 129 129 unsigned long bcsr1, bcsr2; 130 - u32 pin_func; 131 130 132 131 bcsr1 = DB1000_BCSR_PHYS_ADDR; 133 132 bcsr2 = DB1000_BCSR_PHYS_ADDR + DB1000_BCSR_HEXLED_OFS; 134 - 135 - pin_func = 0; 136 133 137 134 #ifdef CONFIG_MIPS_DB1000 138 135 printk(KERN_INFO "AMD Alchemy Au1000/Db1000 Board\n"); ··· 161 164 /* Not valid for Au1550 */ 162 165 #if defined(CONFIG_IRDA) && \ 163 166 (defined(CONFIG_SOC_AU1000) || defined(CONFIG_SOC_AU1100)) 164 - /* Set IRFIRSEL instead of GPIO15 */ 165 - pin_func = au_readl(SYS_PINFUNC) | SYS_PF_IRF; 166 - au_writel(pin_func, SYS_PINFUNC); 167 - /* Power off until the driver is in use */ 168 - bcsr_mod(BCSR_RESETS, BCSR_RESETS_IRDA_MODE_MASK, 169 - BCSR_RESETS_IRDA_MODE_OFF); 167 + { 168 + u32 pin_func; 169 + 170 + /* Set IRFIRSEL instead of GPIO15 */ 171 + pin_func = au_readl(SYS_PINFUNC) | SYS_PF_IRF; 172 + au_writel(pin_func, SYS_PINFUNC); 173 + /* Power off until the driver is in use */ 174 + bcsr_mod(BCSR_RESETS, BCSR_RESETS_IRDA_MODE_MASK, 175 + BCSR_RESETS_IRDA_MODE_OFF); 176 + } 170 177 #endif 171 178 bcsr_write(BCSR_PCMCIA, 0); /* turn off PCMCIA power */ 172 179 ··· 178 177 alchemy_gpio1_input_enable(); 179 178 180 179 #ifdef CONFIG_MIPS_MIRAGE 181 - /* GPIO[20] is output */ 182 - alchemy_gpio_direction_output(20, 0); 180 + { 181 + u32 pin_func; 183 182 184 - /* Set GPIO[210:208] instead of SSI_0 */ 185 - pin_func = au_readl(SYS_PINFUNC) | SYS_PF_S0; 183 + /* GPIO[20] is output */ 184 + alchemy_gpio_direction_output(20, 0); 186 185 187 - /* Set GPIO[215:211] for LEDs */ 188 - pin_func |= 5 << 2; 186 + /* Set GPIO[210:208] instead of SSI_0 */ 187 + pin_func = au_readl(SYS_PINFUNC) | SYS_PF_S0; 189 188 190 - /* Set GPIO[214:213] for more LEDs */ 191 - pin_func |= 5 << 12; 189 + /* Set GPIO[215:211] for LEDs */ 190 + pin_func |= 5 << 2; 192 191 193 - /* Set GPIO[207:200] instead of PCMCIA/LCD */ 194 - pin_func |= SYS_PF_LCD | SYS_PF_PC; 195 - au_writel(pin_func, SYS_PINFUNC); 192 + /* Set GPIO[214:213] for more LEDs */ 193 + pin_func |= 5 << 12; 196 194 197 - /* 198 - * Enable speaker amplifier. This should 199 - * be part of the audio driver. 200 - */ 201 - alchemy_gpio_direction_output(209, 1); 195 + /* Set GPIO[207:200] instead of PCMCIA/LCD */ 196 + pin_func |= SYS_PF_LCD | SYS_PF_PC; 197 + au_writel(pin_func, SYS_PINFUNC); 202 198 203 - pm_power_off = mirage_power_off; 204 - _machine_halt = mirage_power_off; 205 - _machine_restart = (void(*)(char *))mips_softreset; 199 + /* 200 + * Enable speaker amplifier. This should 201 + * be part of the audio driver. 202 + */ 203 + alchemy_gpio_direction_output(209, 1); 204 + 205 + pm_power_off = mirage_power_off; 206 + _machine_halt = mirage_power_off; 207 + _machine_restart = (void(*)(char *))mips_softreset; 208 + } 206 209 #endif 207 210 208 211 #ifdef CONFIG_MIPS_BOSPORUS
+2 -3
arch/mips/alchemy/xxs1500/init.c
··· 51 51 prom_init_cmdline(); 52 52 53 53 memsize_str = prom_getenv("memsize"); 54 - if (!memsize_str) 54 + if (!memsize_str || strict_strtoul(memsize_str, 0, &memsize)) 55 55 memsize = 0x04000000; 56 - else 57 - strict_strtoul(memsize_str, 0, &memsize); 56 + 58 57 add_memory_region(0, memsize, BOOT_MEM_RAM); 59 58 } 60 59
+1 -1
arch/mips/boot/compressed/calc_vmlinuz_load_addr.c
··· 16 16 17 17 int main(int argc, char *argv[]) 18 18 { 19 + unsigned long long vmlinux_size, vmlinux_load_addr, vmlinuz_load_addr; 19 20 struct stat sb; 20 - uint64_t vmlinux_size, vmlinux_load_addr, vmlinuz_load_addr; 21 21 22 22 if (argc != 3) { 23 23 fprintf(stderr, "Usage: %s <pathname> <vmlinux_load_addr>\n",
+4 -11
arch/mips/cavium-octeon/Kconfig
··· 1 - config CAVIUM_OCTEON_SPECIFIC_OPTIONS 2 - bool "Enable Octeon specific options" 3 - depends on CPU_CAVIUM_OCTEON 4 - default "y" 1 + if CPU_CAVIUM_OCTEON 5 2 6 3 config CAVIUM_CN63XXP1 7 4 bool "Enable CN63XXP1 errata worarounds" 8 - depends on CAVIUM_OCTEON_SPECIFIC_OPTIONS 9 5 default "n" 10 6 help 11 7 The CN63XXP1 chip requires build time workarounds to ··· 12 16 13 17 config CAVIUM_OCTEON_2ND_KERNEL 14 18 bool "Build the kernel to be used as a 2nd kernel on the same chip" 15 - depends on CAVIUM_OCTEON_SPECIFIC_OPTIONS 16 19 default "n" 17 20 help 18 21 This option configures this kernel to be linked at a different ··· 21 26 22 27 config CAVIUM_OCTEON_HW_FIX_UNALIGNED 23 28 bool "Enable hardware fixups of unaligned loads and stores" 24 - depends on CAVIUM_OCTEON_SPECIFIC_OPTIONS 25 29 default "y" 26 30 help 27 31 Configure the Octeon hardware to automatically fix unaligned loads ··· 32 38 33 39 config CAVIUM_OCTEON_CVMSEG_SIZE 34 40 int "Number of L1 cache lines reserved for CVMSEG memory" 35 - depends on CAVIUM_OCTEON_SPECIFIC_OPTIONS 36 41 range 0 54 37 42 default 1 38 43 help ··· 43 50 44 51 config CAVIUM_OCTEON_LOCK_L2 45 52 bool "Lock often used kernel code in the L2" 46 - depends on CAVIUM_OCTEON_SPECIFIC_OPTIONS 47 53 default "y" 48 54 help 49 55 Enable locking parts of the kernel into the L2 cache. ··· 85 93 config ARCH_SPARSEMEM_ENABLE 86 94 def_bool y 87 95 select SPARSEMEM_STATIC 88 - depends on CPU_CAVIUM_OCTEON 89 96 90 97 config CAVIUM_OCTEON_HELPER 91 98 def_bool y ··· 98 107 99 108 config SWIOTLB 100 109 def_bool y 101 - depends on CPU_CAVIUM_OCTEON 102 110 select IOMMU_HELPER 103 111 select NEED_SG_DMA_LENGTH 112 + 113 + 114 + endif # CPU_CAVIUM_OCTEON
+1 -1
arch/mips/include/asm/cache.h
··· 17 17 #define SMP_CACHE_SHIFT L1_CACHE_SHIFT 18 18 #define SMP_CACHE_BYTES L1_CACHE_BYTES 19 19 20 - #define __read_mostly __attribute__((__section__(".data.read_mostly"))) 20 + #define __read_mostly __attribute__((__section__(".data..read_mostly"))) 21 21 22 22 #endif /* _ASM_CACHE_H */
+3
arch/mips/include/asm/cevt-r4k.h
··· 14 14 #ifndef __ASM_CEVT_R4K_H 15 15 #define __ASM_CEVT_R4K_H 16 16 17 + #include <linux/clockchips.h> 18 + #include <asm/time.h> 19 + 17 20 DECLARE_PER_CPU(struct clock_event_device, mips_clockevent_device); 18 21 19 22 void mips_event_handler(struct clock_event_device *dev);
+1
arch/mips/include/asm/hugetlb.h
··· 70 70 static inline void huge_ptep_clear_flush(struct vm_area_struct *vma, 71 71 unsigned long addr, pte_t *ptep) 72 72 { 73 + flush_tlb_mm(vma->vm_mm); 73 74 } 74 75 75 76 static inline int huge_pte_none(pte_t pte)
+1 -1
arch/mips/include/asm/mach-bcm63xx/bcm963xx_tag.h
··· 88 88 char kernel_crc[CRC_LEN]; 89 89 /* 228-235: Unused at present */ 90 90 char reserved1[8]; 91 - /* 236-239: CRC32 of header excluding tagVersion */ 91 + /* 236-239: CRC32 of header excluding last 20 bytes */ 92 92 char header_crc[CRC_LEN]; 93 93 /* 240-255: Unused at present */ 94 94 char reserved2[16];
+2 -3
arch/mips/jazz/jazzdma.c
··· 211 211 */ 212 212 int vdma_remap(unsigned long laddr, unsigned long paddr, unsigned long size) 213 213 { 214 - int first, pages, npages; 214 + int first, pages; 215 215 216 216 if (laddr > 0xffffff) { 217 217 if (vdma_debug) ··· 228 228 return -EINVAL; /* invalid physical address */ 229 229 } 230 230 231 - npages = pages = 232 - (((paddr & (VDMA_PAGESIZE - 1)) + size) >> 12) + 1; 231 + pages = (((paddr & (VDMA_PAGESIZE - 1)) + size) >> 12) + 1; 233 232 first = laddr >> 12; 234 233 if (vdma_debug) 235 234 printk("vdma_remap: first=%x, pages=%x\n", first, pages);
+1 -3
arch/mips/jz4740/dma.c
··· 242 242 243 243 static void jz4740_dma_chan_irq(struct jz4740_dma_chan *dma) 244 244 { 245 - uint32_t status; 246 - 247 - status = jz4740_dma_read(JZ_REG_DMA_STATUS_CTRL(dma->id)); 245 + (void) jz4740_dma_read(JZ_REG_DMA_STATUS_CTRL(dma->id)); 248 246 249 247 jz4740_dma_write_mask(JZ_REG_DMA_STATUS_CTRL(dma->id), 0, 250 248 JZ_DMA_STATUS_CTRL_ENABLE | JZ_DMA_STATUS_CTRL_TRANSFER_DONE);
+1 -1
arch/mips/jz4740/time.c
··· 89 89 90 90 static struct clock_event_device jz4740_clockevent = { 91 91 .name = "jz4740-timer", 92 - .features = CLOCK_EVT_FEAT_PERIODIC, 92 + .features = CLOCK_EVT_FEAT_PERIODIC | CLOCK_EVT_FEAT_ONESHOT, 93 93 .set_next_event = jz4740_clockevent_set_next, 94 94 .set_mode = jz4740_clockevent_set_mode, 95 95 .rating = 200,
+2
arch/mips/jz4740/timer.c
··· 27 27 { 28 28 writel(BIT(16), jz4740_timer_base + JZ_REG_TIMER_STOP_CLEAR); 29 29 } 30 + EXPORT_SYMBOL_GPL(jz4740_timer_enable_watchdog); 30 31 31 32 void jz4740_timer_disable_watchdog(void) 32 33 { 33 34 writel(BIT(16), jz4740_timer_base + JZ_REG_TIMER_STOP_SET); 34 35 } 36 + EXPORT_SYMBOL_GPL(jz4740_timer_disable_watchdog); 35 37 36 38 void __init jz4740_timer_init(void) 37 39 {
+3 -2
arch/mips/kernel/ftrace.c
··· 23 23 24 24 #define JAL 0x0c000000 /* jump & link: ip --> ra, jump to target */ 25 25 #define ADDR_MASK 0x03ffffff /* op_code|addr : 31...26|25 ....0 */ 26 + #define JUMP_RANGE_MASK ((1UL << 28) - 1) 26 27 27 28 #define INSN_NOP 0x00000000 /* nop */ 28 29 #define INSN_JAL(addr) \ ··· 45 44 46 45 /* jal (ftrace_caller + 8), jump over the first two instruction */ 47 46 buf = (u32 *)&insn_jal_ftrace_caller; 48 - uasm_i_jal(&buf, (FTRACE_ADDR + 8)); 47 + uasm_i_jal(&buf, (FTRACE_ADDR + 8) & JUMP_RANGE_MASK); 49 48 50 49 #ifdef CONFIG_FUNCTION_GRAPH_TRACER 51 50 /* j ftrace_graph_caller */ 52 51 buf = (u32 *)&insn_j_ftrace_graph_caller; 53 - uasm_i_j(&buf, (unsigned long)ftrace_graph_caller); 52 + uasm_i_j(&buf, (unsigned long)ftrace_graph_caller & JUMP_RANGE_MASK); 54 53 #endif 55 54 } 56 55
+2 -2
arch/mips/kernel/ptrace.c
··· 540 540 secure_computing(regs->regs[2]); 541 541 542 542 if (unlikely(current->audit_context) && entryexit) 543 - audit_syscall_exit(AUDITSC_RESULT(regs->regs[2]), 544 - regs->regs[2]); 543 + audit_syscall_exit(AUDITSC_RESULT(regs->regs[7]), 544 + -regs->regs[2]); 545 545 546 546 if (!(current->ptrace & PT_PTRACED)) 547 547 goto out;
+1 -1
arch/mips/kernel/scall32-o32.S
··· 565 565 sys sys_ioprio_get 2 /* 4315 */ 566 566 sys sys_utimensat 4 567 567 sys sys_signalfd 3 568 - sys sys_ni_syscall 0 568 + sys sys_ni_syscall 0 /* was timerfd */ 569 569 sys sys_eventfd 1 570 570 sys sys_fallocate 6 /* 4320 */ 571 571 sys sys_timerfd_create 2
+1 -1
arch/mips/kernel/scall64-64.S
··· 404 404 PTR sys_ioprio_get 405 405 PTR sys_utimensat /* 5275 */ 406 406 PTR sys_signalfd 407 - PTR sys_ni_syscall 407 + PTR sys_ni_syscall /* was timerfd */ 408 408 PTR sys_eventfd 409 409 PTR sys_fallocate 410 410 PTR sys_timerfd_create /* 5280 */
+1 -1
arch/mips/kernel/scall64-n32.S
··· 403 403 PTR sys_ioprio_get 404 404 PTR compat_sys_utimensat 405 405 PTR compat_sys_signalfd /* 6280 */ 406 - PTR sys_ni_syscall 406 + PTR sys_ni_syscall /* was timerfd */ 407 407 PTR sys_eventfd 408 408 PTR sys_fallocate 409 409 PTR sys_timerfd_create
+1 -1
arch/mips/kernel/scall64-o32.S
··· 522 522 PTR sys_ioprio_get /* 4315 */ 523 523 PTR compat_sys_utimensat 524 524 PTR compat_sys_signalfd 525 - PTR sys_ni_syscall 525 + PTR sys_ni_syscall /* was timerfd */ 526 526 PTR sys_eventfd 527 527 PTR sys32_fallocate /* 4320 */ 528 528 PTR sys_timerfd_create
+1
arch/mips/kernel/vmlinux.lds.S
··· 74 74 INIT_TASK_DATA(PAGE_SIZE) 75 75 NOSAVE_DATA 76 76 CACHELINE_ALIGNED_DATA(1 << CONFIG_MIPS_L1_CACHE_SHIFT) 77 + READ_MOSTLY_DATA(1 << CONFIG_MIPS_L1_CACHE_SHIFT) 77 78 DATA_DATA 78 79 CONSTRUCTORS 79 80 }
+3 -2
arch/mips/loongson/common/env.c
··· 29 29 30 30 #define parse_even_earlier(res, option, p) \ 31 31 do { \ 32 - int ret; \ 32 + unsigned int tmp __maybe_unused; \ 33 + \ 33 34 if (strncmp(option, (char *)p, strlen(option)) == 0) \ 34 - ret = strict_strtol((char *)p + strlen(option"="), 10, &res); \ 35 + tmp = strict_strtol((char *)p + strlen(option"="), 10, &res); \ 35 36 } while (0) 36 37 37 38 void __init prom_init_env(void)
-2
arch/mips/mm/c-r4k.c
··· 1075 1075 unsigned long flags, addr, begin, end, pow2; 1076 1076 unsigned int config = read_c0_config(); 1077 1077 struct cpuinfo_mips *c = &current_cpu_data; 1078 - int tmp; 1079 1078 1080 1079 if (config & CONF_SC) 1081 1080 return 0; ··· 1107 1108 1108 1109 /* Now search for the wrap around point. */ 1109 1110 pow2 = (128 * 1024); 1110 - tmp = 0; 1111 1111 for (addr = begin + (128 * 1024); addr < end; addr = begin + pow2) { 1112 1112 cache_op(Index_Load_Tag_SD, addr); 1113 1113 __asm__ __volatile__("nop; nop; nop; nop;"); /* hazard... */
+2 -2
arch/mips/mm/tlbex.c
··· 1151 1151 struct uasm_reloc *r = relocs; 1152 1152 u32 *f; 1153 1153 unsigned int final_len; 1154 - struct mips_huge_tlb_info htlb_info; 1155 - enum vmalloc64_mode vmalloc_mode; 1154 + struct mips_huge_tlb_info htlb_info __maybe_unused; 1155 + enum vmalloc64_mode vmalloc_mode __maybe_unused; 1156 1156 1157 1157 memset(tlb_handler, 0, sizeof(tlb_handler)); 1158 1158 memset(labels, 0, sizeof(labels));
+3 -11
arch/mips/mti-malta/malta-init.c
··· 193 193 194 194 void __init prom_init(void) 195 195 { 196 - int result; 197 - 198 196 prom_argc = fw_arg0; 199 197 _prom_argv = (int *) fw_arg1; 200 198 _prom_envp = (int *) fw_arg2; ··· 358 360 #ifdef CONFIG_SERIAL_8250_CONSOLE 359 361 console_config(); 360 362 #endif 361 - /* Early detection of CMP support */ 362 - result = gcmp_probe(GCMP_BASE_ADDR, GCMP_ADDRSPACE_SZ); 363 - 364 363 #ifdef CONFIG_MIPS_CMP 365 - if (result) 364 + /* Early detection of CMP support */ 365 + if (gcmp_probe(GCMP_BASE_ADDR, GCMP_ADDRSPACE_SZ)) 366 366 register_smp_ops(&cmp_smp_ops); 367 + else 367 368 #endif 368 369 #ifdef CONFIG_MIPS_MT_SMP 369 - #ifdef CONFIG_MIPS_CMP 370 - if (!result) 371 370 register_smp_ops(&vsmp_smp_ops); 372 - #else 373 - register_smp_ops(&vsmp_smp_ops); 374 - #endif 375 371 #endif 376 372 #ifdef CONFIG_MIPS_MT_SMTC 377 373 register_smp_ops(&msmtc_smp_ops);
+1 -2
arch/mips/mti-malta/malta-int.c
··· 56 56 static inline int mips_pcibios_iack(void) 57 57 { 58 58 int irq; 59 - u32 dummy; 60 59 61 60 /* 62 61 * Determine highest priority pending interrupt by performing ··· 82 83 BONITO_PCIMAP_CFG = 0x20000; 83 84 84 85 /* Flush Bonito register block */ 85 - dummy = BONITO_PCIMAP_CFG; 86 + (void) BONITO_PCIMAP_CFG; 86 87 iob(); /* sync */ 87 88 88 89 irq = __raw_readl((u32 *)_pcictrl_bonito_pcicfg);
+1 -1
arch/mips/pmc-sierra/msp71xx/msp_irq_per.c
··· 97 97 98 98 static struct irq_chip msp_per_irq_controller = { 99 99 .name = "MSP_PER", 100 - .irq_enable = unmask_per_irq. 100 + .irq_enable = unmask_per_irq, 101 101 .irq_disable = mask_per_irq, 102 102 .irq_ack = msp_per_irq_ack, 103 103 #ifdef CONFIG_SMP
+1 -1
arch/mips/power/hibernate.S
··· 35 35 0: 36 36 PTR_L t1, PBE_ADDRESS(t0) /* source */ 37 37 PTR_L t2, PBE_ORIG_ADDRESS(t0) /* destination */ 38 - PTR_ADDIU t3, t1, PAGE_SIZE 38 + PTR_ADDU t3, t1, PAGE_SIZE 39 39 1: 40 40 REG_L t8, (t1) 41 41 REG_S t8, (t2)
+2 -2
arch/mips/sgi-ip22/ip22-platform.c
··· 132 132 */ 133 133 static int __init sgiseeq_devinit(void) 134 134 { 135 - unsigned int tmp; 135 + unsigned int pbdma __maybe_unused; 136 136 int res, i; 137 137 138 138 eth0_pd.hpc = hpc3c0; ··· 151 151 152 152 /* Second HPC is missing? */ 153 153 if (ip22_is_fullhouse() || 154 - get_dbe(tmp, (unsigned int *)&hpc3c1->pbdma[1])) 154 + get_dbe(pbdma, (unsigned int *)&hpc3c1->pbdma[1])) 155 155 return 0; 156 156 157 157 sgimc->giopar |= SGIMC_GIOPAR_MASTEREXP1 | SGIMC_GIOPAR_EXP164 |
+2 -2
arch/mips/sgi-ip22/ip22-time.c
··· 32 32 static unsigned long dosample(void) 33 33 { 34 34 u32 ct0, ct1; 35 - u8 msb, lsb; 35 + u8 msb; 36 36 37 37 /* Start the counter. */ 38 38 sgint->tcword = (SGINT_TCWORD_CNT2 | SGINT_TCWORD_CALL | ··· 46 46 /* Latch and spin until top byte of counter2 is zero */ 47 47 do { 48 48 writeb(SGINT_TCWORD_CNT2 | SGINT_TCWORD_CLAT, &sgint->tcword); 49 - lsb = readb(&sgint->tcnt2); 49 + (void) readb(&sgint->tcnt2); 50 50 msb = readb(&sgint->tcnt2); 51 51 ct1 = read_c0_count(); 52 52 } while (msb);
+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 }
-3
arch/mips/sgi-ip27/ip27-klnuma.c
··· 54 54 55 55 static __init void set_ktext_source(nasid_t client_nasid, nasid_t server_nasid) 56 56 { 57 - cnodeid_t client_cnode; 58 57 kern_vars_t *kvp; 59 - 60 - client_cnode = NASID_TO_COMPACT_NODEID(client_nasid); 61 58 62 59 kvp = &hub_data(client_nasid)->kern_vars; 63 60
+2 -2
arch/mips/sni/time.c
··· 95 95 static __init unsigned long dosample(void) 96 96 { 97 97 u32 ct0, ct1; 98 - volatile u8 msb, lsb; 98 + volatile u8 msb; 99 99 100 100 /* Start the counter. */ 101 101 outb_p(0x34, 0x43); ··· 108 108 /* Latch and spin until top byte of counter0 is zero */ 109 109 do { 110 110 outb(0x00, 0x43); 111 - lsb = inb(0x40); 111 + (void) inb(0x40); 112 112 msb = inb(0x40); 113 113 ct1 = read_c0_count(); 114 114 } while (msb);