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

MIPS: Whitespace cleanups and reformatting.

Signed-off-by: Steven J. Hill <sjhill@mips.com>
Cc: linux-mips@linux-mips.org
Cc: Steven J. Hill <sjhill@mips.com>
Cc: Kevin Cernekee <cernekee@gmail.com>
Patchwork: https://patchwork.linux-mips.org/patch/4781/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Steven J. Hill and committed by
Ralf Baechle
b9688310 bc4f2975

+17 -13
+15 -11
arch/mips/include/asm/mipsregs.h
··· 1142 1142 /* 1143 1143 * Macros to access the floating point coprocessor control registers 1144 1144 */ 1145 - #define read_32bit_cp1_register(source) \ 1146 - ({ int __res; \ 1147 - __asm__ __volatile__( \ 1148 - ".set\tpush\n\t" \ 1149 - ".set\treorder\n\t" \ 1150 - /* gas fails to assemble cfc1 for some archs (octeon).*/ \ 1151 - ".set\tmips1\n\t" \ 1152 - "cfc1\t%0,"STR(source)"\n\t" \ 1153 - ".set\tpop" \ 1154 - : "=r" (__res)); \ 1155 - __res;}) 1145 + #define read_32bit_cp1_register(source) \ 1146 + ({ \ 1147 + int __res; \ 1148 + \ 1149 + __asm__ __volatile__( \ 1150 + " .set push \n" \ 1151 + " .set reorder \n" \ 1152 + " # gas fails to assemble cfc1 for some archs, \n" \ 1153 + " # like Octeon. \n" \ 1154 + " .set mips1 \n" \ 1155 + " cfc1 %0,"STR(source)" \n" \ 1156 + " .set pop \n" \ 1157 + : "=r" (__res)); \ 1158 + __res; \ 1159 + }) 1156 1160 1157 1161 #define rddsp(mask) \ 1158 1162 ({ \
+2 -2
arch/mips/kernel/traps.c
··· 518 518 offset >>= 16; 519 519 520 520 vaddr = (unsigned long __user *) 521 - ((unsigned long)(regs->regs[(opcode & BASE) >> 21]) + offset); 521 + ((unsigned long)(regs->regs[(opcode & BASE) >> 21]) + offset); 522 522 523 523 if ((unsigned long)vaddr & 3) 524 524 return SIGBUS; ··· 558 558 offset >>= 16; 559 559 560 560 vaddr = (unsigned long __user *) 561 - ((unsigned long)(regs->regs[(opcode & BASE) >> 21]) + offset); 561 + ((unsigned long)(regs->regs[(opcode & BASE) >> 21]) + offset); 562 562 reg = (opcode & RT) >> 16; 563 563 564 564 if ((unsigned long)vaddr & 3)