···6060 prom_envp = (char **) fw_arg2;61616262 /* Set the platform # */6363-#if defined (CONFIG_MIPS_DB1550)6363+#if defined(CONFIG_MIPS_DB1550)6464 mips_machtype = MACH_DB1550;6565-#elif defined (CONFIG_MIPS_DB1500)6565+#elif defined(CONFIG_MIPS_DB1500)6666 mips_machtype = MACH_DB1500;6767-#elif defined (CONFIG_MIPS_DB1100)6767+#elif defined(CONFIG_MIPS_DB1100)6868 mips_machtype = MACH_DB1100;6969#else7070 mips_machtype = MACH_DB1000;
+1-1
arch/mips/au1000/mtx-1/board_setup.c
···4646extern int (*board_pci_idsel)(unsigned int devsel, int assert);4747int mtx1_pci_idsel(unsigned int devsel, int assert);48484949-void board_reset (void)4949+void board_reset(void)5050{5151 /* Hit BCSR.SYSTEM_CONTROL[SW_RST] */5252 au_writel(0x00000000, 0xAE00001C);
···733733 * returns 1 if you should skip the instruction at the trap address, 0734734 * otherwise.735735 */736736-void handle_exception (struct gdb_regs *regs)736736+void handle_exception(struct gdb_regs *regs)737737{738738 int trap; /* Trap type */739739 int sigval;···917917 && hexToInt(&ptr, &length)) {918918 if (mem2hex((char *)addr, output_buffer, length, 1))919919 break;920920- strcpy (output_buffer, "E03");920920+ strcpy(output_buffer, "E03");921921 } else922922 strcpy(output_buffer,"E01");923923 break;
+1-1
arch/mips/kernel/i8259.c
···329329 * driver compatibility reasons interrupts 0 - 15 to be the i8259330330 * interrupts even if the hardware uses a different interrupt numbering.331331 */332332-void __init init_i8259_irqs (void)332332+void __init init_i8259_irqs(void)333333{334334 int i;335335
···9999}100100101101void102102-msc_bind_eic_interrupt (unsigned int irq, unsigned int set)102102+msc_bind_eic_interrupt(unsigned int irq, unsigned int set)103103{104104 MSCIC_WRITE(MSC01_IC_RAMW,105105 (irq<<MSC01_IC_RAMW_ADDR_SHF) | (set<<MSC01_IC_RAMW_DATA_SHF));···130130{131131 extern void (*board_bind_eic_interrupt)(unsigned int irq, unsigned int regset);132132133133- _icctrl_msc = (unsigned long) ioremap (icubase, 0x40000);133133+ _icctrl_msc = (unsigned long) ioremap(icubase, 0x40000);134134135135 /* Reset interrupt controller - initialises all registers to 0 */136136 MSCIC_WRITE(MSC01_IC_RST, MSC01_IC_RST_RST_BIT);
+5-5
arch/mips/kernel/kspd.c
···118118119119static int sp_syscall(int num, int arg0, int arg1, int arg2, int arg3)120120{121121- register long int _num __asm__ ("$2") = num;122122- register long int _arg0 __asm__ ("$4") = arg0;123123- register long int _arg1 __asm__ ("$5") = arg1;124124- register long int _arg2 __asm__ ("$6") = arg2;125125- register long int _arg3 __asm__ ("$7") = arg3;121121+ register long int _num __asm__("$2") = num;122122+ register long int _arg0 __asm__("$4") = arg0;123123+ register long int _arg1 __asm__("$5") = arg1;124124+ register long int _arg2 __asm__("$6") = arg2;125125+ register long int _arg3 __asm__("$7") = arg3;126126127127 mm_segment_t old_fs;128128
+7-7
arch/mips/kernel/linux32.c
···300300{301301 struct timespec t;302302 int ret;303303- mm_segment_t old_fs = get_fs ();303303+ mm_segment_t old_fs = get_fs();304304305305- set_fs (KERNEL_DS);305305+ set_fs(KERNEL_DS);306306 ret = sys_sched_rr_get_interval(pid, (struct timespec __user *)&t);307307- set_fs (old_fs);307307+ set_fs(old_fs);308308 if (put_user (t.tv_sec, &interval->tv_sec) ||309309- __put_user (t.tv_nsec, &interval->tv_nsec))309309+ __put_user(t.tv_nsec, &interval->tv_nsec))310310 return -EFAULT;311311 return ret;312312}···314314#ifdef CONFIG_SYSVIPC315315316316asmlinkage long317317-sys32_ipc (u32 call, int first, int second, int third, u32 ptr, u32 fifth)317317+sys32_ipc(u32 call, int first, int second, int third, u32 ptr, u32 fifth)318318{319319 int version, err;320320···373373#else374374375375asmlinkage long376376-sys32_ipc (u32 call, int first, int second, int third, u32 ptr, u32 fifth)376376+sys32_ipc(u32 call, int first, int second, int third, u32 ptr, u32 fifth)377377{378378 return -ENOSYS;379379}···505505506506 set_fs(KERNEL_DS);507507 err = sys_ustat(dev, (struct ustat __user *)&tmp);508508- set_fs (old_fs);508508+ set_fs(old_fs);509509510510 if (err)511511 goto out;
···149149 * Possibly handle a performance counter interrupt.150150 * Return true if the timer interrupt should not be checked151151 */152152-static inline int handle_perf_irq (int r2)152152+static inline int handle_perf_irq(int r2)153153{154154 /*155155 * The performance counter overflow interrupt may be shared with the
+13-13
arch/mips/kernel/traps.c
···627627 lose_fpu(1);628628629629 /* Run the emulator */630630- sig = fpu_emulator_cop1Handler (regs, ¤t->thread.fpu, 1);630630+ sig = fpu_emulator_cop1Handler(regs, ¤t->thread.fpu, 1);631631632632 /*633633 * We can't allow the emulated instruction to leave any of···1165116511661166 if (cpu_has_veic) {11671167 if (board_bind_eic_interrupt)11681168- board_bind_eic_interrupt (n, srs);11681168+ board_bind_eic_interrupt(n, srs);11691169 } else if (cpu_has_vint) {11701170 /* SRSMap is only defined if shadow sets are implemented */11711171 if (mips_srs_max() > 1)11721172- change_c0_srsmap (0xf << n*4, srs << n*4);11721172+ change_c0_srsmap(0xf << n*4, srs << n*4);11731173 }1174117411751175 if (srs == 0) {···11981198 * Sigh... panicing won't help as the console11991199 * is probably not configured :(12001200 */12011201- panic ("VECTORSPACING too small");12011201+ panic("VECTORSPACING too small");12021202 }1203120312041204- memcpy (b, &except_vec_vi, handler_len);12041204+ memcpy(b, &except_vec_vi, handler_len);12051205#ifdef CONFIG_MIPS_MT_SMTC12061206 BUG_ON(n > 7); /* Vector index %d exceeds SMTC maximum. */12071207···13701370#endif /* CONFIG_MIPS_MT_SMTC */1371137113721372 if (cpu_has_veic || cpu_has_vint) {13731373- write_c0_ebase (ebase);13731373+ write_c0_ebase(ebase);13741374 /* Setting vector spacing enables EI/VI mode */13751375- change_c0_intctl (0x3e0, VECTORSPACING);13751375+ change_c0_intctl(0x3e0, VECTORSPACING);13761376 }13771377 if (cpu_has_divec) {13781378 if (cpu_has_mipsmt) {···13901390 * o read IntCtl.IPPCI to determine the performance counter interrupt13911391 */13921392 if (cpu_has_mips_r2) {13931393- cp0_compare_irq = (read_c0_intctl () >> 29) & 7;13941394- cp0_perfcount_irq = (read_c0_intctl () >> 26) & 7;13931393+ cp0_compare_irq = (read_c0_intctl() >> 29) & 7;13941394+ cp0_perfcount_irq = (read_c0_intctl() >> 26) & 7;13951395 if (cp0_perfcount_irq == cp0_compare_irq)13961396 cp0_perfcount_irq = -1;13971397 } else {···14291429}1430143014311431/* Install CPU exception handler */14321432-void __init set_handler (unsigned long offset, void *addr, unsigned long size)14321432+void __init set_handler(unsigned long offset, void *addr, unsigned long size)14331433{14341434 memcpy((void *)(ebase + offset), addr, size);14351435 flush_icache_range(ebase + offset, ebase + offset + size);···14391439 "Trying to set NULL cache error exception handler";1440144014411441/* Install uncached CPU exception handler */14421442-void __init set_uncached_handler (unsigned long offset, void *addr, unsigned long size)14421442+void __init set_uncached_handler(unsigned long offset, void *addr, unsigned long size)14431443{14441444#ifdef CONFIG_32BIT14451445 unsigned long uncached_ebase = KSEG1ADDR(ebase);···14701470 unsigned long i;1471147114721472 if (cpu_has_veic || cpu_has_vint)14731473- ebase = (unsigned long) alloc_bootmem_low_pages (0x200 + VECTORSPACING*64);14731473+ ebase = (unsigned long) alloc_bootmem_low_pages(0x200 + VECTORSPACING*64);14741474 else14751475 ebase = CAC_BASE;14761476···14961496 * destination.14971497 */14981498 if (cpu_has_ejtag && board_ejtag_handler_setup)14991499- board_ejtag_handler_setup ();14991499+ board_ejtag_handler_setup();1500150015011501 /*15021502 * Only some CPUs have the watch exceptions.
···2233#include "libgcc.h"4455-word_type __ucmpdi2 (unsigned long long a, unsigned long long b)55+word_type __ucmpdi2(unsigned long long a, unsigned long long b)66{77 const DWunion au = {.ll = a};88 const DWunion bu = {.ll = b};
···125125 return &mdesc[0];126126}127127128128-static int __init prom_memtype_classify (unsigned int type)128128+static int __init prom_memtype_classify(unsigned int type)129129{130130 switch (type) {131131 case yamon_free:···158158 long type;159159 unsigned long base, size;160160161161- type = prom_memtype_classify (p->type);161161+ type = prom_memtype_classify(p->type);162162 base = p->base;163163 size = p->size;164164
···6969 return &mdesc[0];7070}71717272-static int __init prom_memtype_classify (unsigned int type)7272+static int __init prom_memtype_classify(unsigned int type)7373{7474 switch (type) {7575 case simmem_free:···9090 long type;9191 unsigned long base, size;92929393- type = prom_memtype_classify (p->type);9393+ type = prom_memtype_classify(p->type);9494 base = p->base;9595 size = p->size;9696
···121121 write_c0_status((ST0_ISC|ST0_SWC|flags)&~ST0_IEC);122122123123 for (i = 0; i < size; i += 0x080) {124124- asm ( "sb\t$0, 0x000(%0)\n\t"124124+ asm( "sb\t$0, 0x000(%0)\n\t"125125 "sb\t$0, 0x004(%0)\n\t"126126 "sb\t$0, 0x008(%0)\n\t"127127 "sb\t$0, 0x00c(%0)\n\t"···178178 write_c0_status((ST0_ISC|flags)&~ST0_IEC);179179180180 for (i = 0; i < size; i += 0x080) {181181- asm ( "sb\t$0, 0x000(%0)\n\t"181181+ asm( "sb\t$0, 0x000(%0)\n\t"182182 "sb\t$0, 0x004(%0)\n\t"183183 "sb\t$0, 0x008(%0)\n\t"184184 "sb\t$0, 0x00c(%0)\n\t"···217217 write_c0_status(flags);218218}219219220220-static inline unsigned long get_phys_page (unsigned long addr,221221- struct mm_struct *mm)220220+static inline unsigned long get_phys_page(unsigned long addr,221221+ struct mm_struct *mm)222222{223223 pgd_t *pgd;224224 pud_t *pud;···281281 write_c0_status(flags&~ST0_IEC);282282283283 /* Fill the TLB to avoid an exception with caches isolated. */284284- asm ( "lw\t$0, 0x000(%0)\n\t"284284+ asm( "lw\t$0, 0x000(%0)\n\t"285285 "lw\t$0, 0x004(%0)\n\t"286286 : : "r" (addr) );287287288288 write_c0_status((ST0_ISC|ST0_SWC|flags)&~ST0_IEC);289289290290- asm ( "sb\t$0, 0x000(%0)\n\t"290290+ asm( "sb\t$0, 0x000(%0)\n\t"291291 "sb\t$0, 0x004(%0)\n\t"292292 : : "r" (addr) );293293
+1-1
arch/mips/mm/sc-mips.c
···102102103103int __init mips_sc_init(void)104104{105105- int found = mips_sc_probe ();105105+ int found = mips_sc_probe();106106 if (found) {107107 mips_sc_enable();108108 bcops = &mips_sc_ops;
+1-1
arch/mips/mm/tlb-r4k.c
···491491 int wired = current_cpu_data.tlbsize - ntlb;492492 write_c0_wired(wired);493493 write_c0_index(wired-1);494494- printk ("Restricting TLB to %d entries\n", ntlb);494494+ printk("Restricting TLB to %d entries\n", ntlb);495495 } else496496 printk("Ignoring invalid argument ntlb=%d\n", ntlb);497497 }
+1-1
arch/mips/oprofile/op_model_mipsxx.c
···118118119119/* Program all of the registers in preparation for enabling profiling. */120120121121-static void mipsxx_cpu_setup (void *args)121121+static void mipsxx_cpu_setup(void *args)122122{123123 unsigned int counters = op_model_mipsxx_ops.num_counters;124124
+1-1
arch/mips/oprofile/op_model_rm9000.c
···60606161/* Program all of the registers in preparation for enabling profiling. */62626363-static void rm9000_cpu_setup (void *args)6363+static void rm9000_cpu_setup(void *args)6464{6565 uint64_t perfcount;6666
···5555 int i;56565757 for (i = 0; i < 4; i++) {5858- sig[i] = inb (addr + i);5858+ sig[i] = inb(addr + i);59596060 if (!i && (sig[0] & 0x80))6161 return NULL;
+1-1
arch/mips/sgi-ip22/ip22-int.c
···344344345345#ifdef CONFIG_EISA346346 if (ip22_is_fullhouse()) /* Only Indigo-2 has EISA stuff */347347- ip22_eisa_init ();347347+ ip22_eisa_init();348348#endif349349}
+3-3
arch/mips/sgi-ip32/crime.c
···3535 id = crime->id;3636 rev = id & CRIME_ID_REV;3737 id = (id & CRIME_ID_IDBITS) >> 4;3838- printk (KERN_INFO "CRIME id %1x rev %d at 0x%0*lx\n",3939- id, rev, field, (unsigned long) CRIME_BASE);3838+ printk(KERN_INFO "CRIME id %1x rev %d at 0x%0*lx\n",3939+ id, rev, field, (unsigned long) CRIME_BASE);4040}41414242irqreturn_t crime_memerr_intr(unsigned int irq, void *dev_id)···9696 unsigned long addr = crime->cpu_error_addr & CRIME_CPU_ERROR_ADDR_MASK;97979898 addr <<= 2;9999- printk ("CRIME CPU error at 0x%09lx status 0x%08lx\n", addr, stat);9999+ printk("CRIME CPU error at 0x%09lx status 0x%08lx\n", addr, stat);100100 crime->cpu_error_stat = 0;101101102102 return IRQ_HANDLED;
···4444 volatile u8 msb, lsb;45454646 /* Start the counter. */4747- outb_p (0x34, 0x43);4747+ outb_p(0x34, 0x43);4848 outb_p(SNI_8254_TCSAMP_COUNTER & 0xff, 0x40);4949- outb (SNI_8254_TCSAMP_COUNTER >> 8, 0x40);4949+ outb(SNI_8254_TCSAMP_COUNTER >> 8, 0x40);50505151 /* Get initial counter invariant */5252 ct0 = read_c0_count();53535454 /* Latch and spin until top byte of counter0 is zero */5555 do {5656- outb (0x00, 0x43);5757- lsb = inb (0x40);5858- msb = inb (0x40);5656+ outb(0x00, 0x43);5757+ lsb = inb(0x40);5858+ msb = inb(0x40);5959 ct1 = read_c0_count();6060 } while (msb);61616262 /* Stop the counter. */6363- outb (0x38, 0x43);6363+ outb(0x38, 0x43);6464 /*6565 * Return the difference, this is how far the r4k counter increments6666 * for every 1/HZ seconds. We round off the nearest 1 MHz of master···137137 case SNI_BRD_10NEW:138138 case SNI_BRD_TOWER_OASIC:139139 case SNI_BRD_MINITOWER:140140- sni_a20r_timer_setup (irq);140140+ sni_a20r_timer_setup(irq);141141 break;142142143143 case SNI_BRD_PCI_TOWER:···146146 case SNI_BRD_PCI_DESKTOP:147147 case SNI_BRD_PCI_TOWER_CPLUS:148148 case SNI_BRD_PCI_MTOWER_CPLUS:149149- sni_cpu_timer_setup (irq);149149+ sni_cpu_timer_setup(irq);150150 break;151151 }152152}
···65656666#endif /* __GNUC__ */67676868-#if defined (__MIPSEB__)6868+#if defined(__MIPSEB__)6969# include <linux/byteorder/big_endian.h>7070-#elif defined (__MIPSEL__)7070+#elif defined(__MIPSEL__)7171# include <linux/byteorder/little_endian.h>7272#else7373# error "MIPS, but neither __MIPSEB__, nor __MIPSEL__???"
+1-1
include/asm-mips/elf.h
···319319struct task_struct;320320321321extern void elf_dump_regs(elf_greg_t *, struct pt_regs *regs);322322-extern int dump_task_regs (struct task_struct *, elf_gregset_t *);322322+extern int dump_task_regs(struct task_struct *, elf_gregset_t *);323323extern int dump_task_fpu(struct task_struct *, elf_fpregset_t *);324324325325#define ELF_CORE_COPY_REGS(elf_regs, regs) \
···7575}76767777static inline int7878-futex_atomic_op_inuser (int encoded_op, int __user *uaddr)7878+futex_atomic_op_inuser(int encoded_op, int __user *uaddr)7979{8080 int op = (encoded_op >> 28) & 7;8181 int cmp = (encoded_op >> 24) & 15;
+2-2
include/asm-mips/inventory.h
···17171818extern int inventory_items;19192020-extern void add_to_inventory (int class, int type, int controller, int unit, int state);2121-extern int dump_inventory_to_user (void __user *userbuf, int size);2020+extern void add_to_inventory(int class, int type, int controller, int unit, int state);2121+extern int dump_inventory_to_user(void __user *userbuf, int size);2222extern int __init init_inventory(void);23232424#endif /* __ASM_INVENTORY_H */
···66#ifndef _ASM_PARPORT_H77#define _ASM_PARPORT_H8899-static int __devinit parport_pc_find_isa_ports (int autoirq, int autodma);1010-static int __devinit parport_pc_find_nonpci_ports (int autoirq, int autodma)99+static int __devinit parport_pc_find_isa_ports(int autoirq, int autodma);1010+static int __devinit parport_pc_find_nonpci_ports(int autoirq, int autodma)1111{1212- return parport_pc_find_isa_ports (autoirq, autodma);1212+ return parport_pc_find_isa_ports(autoirq, autodma);1313}14141515#endif /* _ASM_PARPORT_H */
+1-1
include/asm-mips/prctl.h
···36363737#define t_sys prda_sys38383939-ptrdiff_t prctl (int op, int v1, int v2);3939+ptrdiff_t prctl(int op, int v1, int v2);40404141#endif
···99#ifndef _ASM_SN_IO_H1010#define _ASM_SN_IO_H11111212-#if defined (CONFIG_SGI_IP27)1212+#if defined(CONFIG_SGI_IP27)1313#include <asm/sn/sn0/hubio.h>1414#endif1515
+1-1
include/asm-mips/sn/kldir.h
···140140 */141141#define SYMMON_STACK_SIZE 0x8000142142143143-#if defined (PROM)143143+#if defined(PROM)144144145145/*146146 * These defines are prom version dependent. No code other than the IP27
+4-4
include/asm-mips/sn/sn0/addrs.h
···9191 : RAW_NODE_SWIN_BASE(nasid, widget))9292#else /* __ASSEMBLY__ */9393#define NODE_SWIN_BASE(nasid, widget) \9494- (NODE_IO_BASE(nasid) + (UINT64_CAST (widget) << SWIN_SIZE_BITS))9494+ (NODE_IO_BASE(nasid) + (UINT64_CAST(widget) << SWIN_SIZE_BITS))9595#endif /* __ASSEMBLY__ */96969797/*···106106#define BWIN_WIDGET_MASK 0x7107107#define NODE_BWIN_BASE0(nasid) (NODE_IO_BASE(nasid) + BWIN_SIZE)108108#define NODE_BWIN_BASE(nasid, bigwin) (NODE_BWIN_BASE0(nasid) + \109109- (UINT64_CAST (bigwin) << BWIN_SIZE_BITS))109109+ (UINT64_CAST(bigwin) << BWIN_SIZE_BITS))110110111111#define BWIN_WIDGETADDR(addr) ((addr) & BWIN_SIZEMASK)112112#define BWIN_WINDOWNUM(addr) (((addr) >> BWIN_SIZE_BITS) & BWIN_WIDGET_MASK)···259259 * CACHE_ERR_SP_PTR could either contain an address to the stack, or260260 * the stack could start at CACHE_ERR_SP_PTR261261 */262262-#if defined (HUB_ERR_STS_WAR)262262+#if defined(HUB_ERR_STS_WAR)263263#define CACHE_ERR_EFRAME 0x480264264#else /* HUB_ERR_STS_WAR */265265#define CACHE_ERR_EFRAME 0x400···275275276276#define _ARCSPROM277277278278-#if defined (HUB_ERR_STS_WAR)278278+#if defined(HUB_ERR_STS_WAR)279279280280#define ERR_STS_WAR_REGISTER IIO_IIBUSERR281281#define ERR_STS_WAR_ADDR LOCAL_HUB_ADDR(IIO_IIBUSERR)