m68k: Fix indentation by odd number of spaces
Subsystems (2)
Geert Uytterhoeven
maintainercover m68k: Fix indentation by odd number of spaces
Hi all,
This patch series fixes indentation by an odd number of spaces in a few files I was working on. I also fixed a few more whitespace errors in reindented code while at it. No functional changes.
To be queued in the m68k for-v6.7 branch.
Geert Uytterhoeven (5):
m68k: Fix indentation by 7 spaces in <asm/io_mm.h>
m68k: sun3: Fix indentation by 5 or 7 spaces
m68k: kernel: Fix indentation by 7 spaces in traps.c
m68k: Fix indentation by 2 or 5 spaces in <asm/page_mm.h>
m68k: fpsp040: Fix indentation by 5 spaces
arch/m68k/fpsp040/slogn.S | 88 ++++++++++++++-------------- arch/m68k/include/asm/io_mm.h | 24 ++++---- arch/m68k/include/asm/page_mm.h | 45 +++++++------- arch/m68k/include/asm/sun3_pgalloc.h | 10 ++-- arch/m68k/include/asm/tlbflush.h | 72 +++++++++++------------ arch/m68k/kernel/traps.c | 8 +-- arch/m68k/sun3/mmu_emu.c | 40 ++++++------- 7 files changed, 142 insertions(+), 145 deletions(-)
Signature · 12 lines
2.34.1
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus TorvaldsGeert Uytterhoeven
maintainerPATCH 1/5 m68k: Fix indentation by 7 spaces in <asm/io_mm.h>
Indentation should use TABs, not spaces.
--- arch/m68k/include/asm/io_mm.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-)
arch/m68k/include/asm/io_mm.h +12 -12
@@ -294,20 +294,20 @@ static inline void isa_delay(void)#define isa_outsb (port, buf, nr) raw_outsb(isa_itb(port), (u8 *)(buf), (nr))#define isa_insw (port, buf, nr) \ - (ISA_SEX ? raw_insw(isa_itw(port), (u16 *)(buf), (nr)) : \ - raw_insw_swapw(isa_itw(port), (u16 *)(buf), (nr))) + (ISA_SEX ? raw_insw(isa_itw(port), (u16 *)(buf), (nr)) : \ + raw_insw_swapw(isa_itw(port), (u16 *)(buf), (nr)))#define isa_outsw (port, buf, nr) \ - (ISA_SEX ? raw_outsw(isa_itw(port), (u16 *)(buf), (nr)) : \ - raw_outsw_swapw(isa_itw(port), (u16 *)(buf), (nr))) + (ISA_SEX ? raw_outsw(isa_itw(port), (u16 *)(buf), (nr)) : \ + raw_outsw_swapw(isa_itw(port), (u16 *)(buf), (nr)))#define isa_insl (port, buf, nr) \ - (ISA_SEX ? raw_insl(isa_itl(port), (u32 *)(buf), (nr)) : \ - raw_insw_swapw(isa_itw(port), (u16 *)(buf), (nr)<<1)) + (ISA_SEX ? raw_insl(isa_itl(port), (u32 *)(buf), (nr)) : \ + raw_insw_swapw(isa_itw(port), (u16 *)(buf), (nr)<<1))#define isa_outsl (port, buf, nr) \ - (ISA_SEX ? raw_outsl(isa_itl(port), (u32 *)(buf), (nr)) : \ - raw_outsw_swapw(isa_itw(port), (u16 *)(buf), (nr)<<1)) + (ISA_SEX ? raw_outsl(isa_itl(port), (u32 *)(buf), (nr)) : \ + raw_outsw_swapw(isa_itw(port), (u16 *)(buf), (nr)<<1))#ifdef CONFIG_ATARI_ROM_ISA
@@ -319,14 +319,14 @@ static inline void isa_delay(void)#define isa_rom_insb (port, buf, nr) raw_rom_insb(isa_itb(port), (u8 *)(buf), (nr))#define isa_rom_insw (port, buf, nr) \ - (ISA_SEX ? raw_rom_insw(isa_itw(port), (u16 *)(buf), (nr)) : \ - raw_rom_insw_swapw(isa_itw(port), (u16 *)(buf), (nr))) + (ISA_SEX ? raw_rom_insw(isa_itw(port), (u16 *)(buf), (nr)) : \ + raw_rom_insw_swapw(isa_itw(port), (u16 *)(buf), (nr)))#define isa_rom_outsb (port, buf, nr) raw_rom_outsb(isa_itb(port), (u8 *)(buf), (nr))#define isa_rom_outsw (port, buf, nr) \ - (ISA_SEX ? raw_rom_outsw(isa_itw(port), (u16 *)(buf), (nr)) : \ - raw_rom_outsw_swapw(isa_itw(port), (u16 *)(buf), (nr))) + (ISA_SEX ? raw_rom_outsw(isa_itw(port), (u16 *)(buf), (nr)) : \ + raw_rom_outsw_swapw(isa_itw(port), (u16 *)(buf), (nr)))#endif /* CONFIG_ATARI_ROM_ISA */ #endif /* CONFIG_ISA || CONFIG_ATARI_ROM_ISA */
Signature · 1 line
2.34.1
Geert Uytterhoeven
maintainerPATCH 2/5 m68k: sun3: Fix indentation by 5 or 7 spaces
In reply to Geert UytterhoevenIndentation should use TABs, not spaces.
Fix whitespace in reindented code while at it.
--- arch/m68k/include/asm/sun3_pgalloc.h | 10 ++-- arch/m68k/include/asm/tlbflush.h | 72 ++++++++++++++-------------- arch/m68k/sun3/mmu_emu.c | 40 ++++++++-------- 3 files changed, 60 insertions(+), 62 deletions(-)
arch/m68k/include/asm/sun3_pgalloc.h +5 -5
@@ -41,12 +41,12 @@ static inline void pmd_populate(struct mm_struct *mm, pmd_t *pmd, pgtable_t pagestatic inline pgd_t *pgd_alloc (struct mm_struct *mm) { -pgd_t *new_pgd; +pgd_t *new_pgd; - new_pgd = (pgd_t *)get_zeroed_page (GFP_KERNEL ); -memcpy (new_pgd, swapper_pg_dir,PAGE_SIZE ); -memset (new_pgd,0 , (PAGE_OFFSET >>PGDIR_SHIFT )); -return new_pgd; + new_pgd = (pgd_t *)get_zeroed_page (GFP_KERNEL ); +memcpy (new_pgd, swapper_pg_dir,PAGE_SIZE ); +memset (new_pgd,0 , (PAGE_OFFSET >>PGDIR_SHIFT )); +return new_pgd; }#endif /* SUN3_PGALLOC_H */
arch/m68k/include/asm/tlbflush.h +35 -37
88 lines not on this page · raw message
arch/m68k/sun3/mmu_emu.c +20 -20
@@ -207,32 +207,32 @@ void __init mmu_emu_init(unsigned long bootmem_end)context for when they're cleared */ void clear_context (unsigned long context) { -unsigned char oldctx; -unsigned long i; +unsigned char oldctx; +unsigned long i; -if (context) { -if (!ctx_alloc[context]) -panic ("%s: context not allocated\n" , __func__); +if (context) { +if (!ctx_alloc[context]) +panic ("%s: context not allocated\n" , __func__); - ctx_alloc[context]->context =SUN3_INVALID_CONTEXT ; - ctx_alloc[context] = (struct mm_struct *)0 ; - ctx_avail++; - } + ctx_alloc[context]->context =SUN3_INVALID_CONTEXT ; + ctx_alloc[context] = (struct mm_struct *)0 ; + ctx_avail++; + } - oldctx =sun3_get_context (); + oldctx =sun3_get_context (); -sun3_put_context (context); +sun3_put_context (context); -for (i =0 ; i <SUN3_INVALID_PMEG ; i++) { -if ((pmeg_ctx[i] == context) && (pmeg_alloc[i] ==1 )) { -sun3_put_segmap (pmeg_vaddr[i],SUN3_INVALID_PMEG ); - pmeg_ctx[i] =0 ; - pmeg_alloc[i] =0 ; - pmeg_vaddr[i] =0 ; - } - } +for (i =0 ; i <SUN3_INVALID_PMEG ; i++) { +if ((pmeg_ctx[i] == context) && (pmeg_alloc[i] ==1 )) { +sun3_put_segmap (pmeg_vaddr[i],SUN3_INVALID_PMEG ); + pmeg_ctx[i] =0 ; + pmeg_alloc[i] =0 ; + pmeg_vaddr[i] =0 ; + } + } -sun3_put_context (oldctx); +sun3_put_context (oldctx); }/* gets an empty context. if full, kills the next context listed to
Signature · 1 line
2.34.1
Geert Uytterhoeven
maintainerPATCH 3/5 m68k: kernel: Fix indentation by 7 spaces in traps.c
In reply to Geert UytterhoevenIndentation should use TABs, not spaces.
--- arch/m68k/kernel/traps.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
arch/m68k/kernel/traps.c +4 -4
@@ -486,10 +486,10 @@ static inline void bus_error030 (struct frame *fp)if (buserr_type &SUN3_BUSERR_INVALID ) {if (!mmu_emu_handle_fault (addr,1 ,0 ))do_page_fault (&fp->ptregs, addr,0 ); - }else { + }else {pr_debug ("protection fault on insn access (segv).\n" );force_sig (SIGSEGV ); - } + } }#else #if defined(CPU_M68020_OR_M68030 )
@@ -850,9 +850,9 @@ void show_registers(struct pt_regs *regs)pr_info ("PC: [<%08lx>] %pS\n" , regs->pc, (void *)regs->pc);pr_info ("SR: %04x SP: %p a2: %08lx\n" , regs->sr, regs, regs->a2);pr_info ("d0: %08lx d1: %08lx d2: %08lx d3: %08lx\n" , - regs->d0, regs->d1, regs->d2, regs->d3); + regs->d0, regs->d1, regs->d2, regs->d3);pr_info ("d4: %08lx d5: %08lx a0: %08lx a1: %08lx\n" , - regs->d4, regs->d5, regs->a0, regs->a1); + regs->d4, regs->d5, regs->a0, regs->a1);pr_info ("Process %s (pid: %d, task=%p)\n" , current->comm,task_pid_nr (current), current);
Signature · 1 line
2.34.1
Geert Uytterhoeven
maintainerPATCH 4/5 m68k: Fix indentation by 2 or 5 spaces in <asm/page_mm.h>
In reply to Geert UytterhoevenIndentation should use TABs, not spaces.
Fix whitespace in reindented code while at it.
--- arch/m68k/include/asm/page_mm.h | 45 ++++++++++++++++----------------- 1 file changed, 22 insertions(+), 23 deletions(-)
arch/m68k/include/asm/page_mm.h +22 -23
@@ -13,17 +13,16 @@#ifdef CPU_M68040_OR_M68060_ONLY static inline void copy_page (void *to,void *from) { -unsigned long tmp; - - __asm__ __volatile__("1:\t" -".chip 68040\n\t" -"move16 %1@+,%0@+\n\t" -"move16 %1@+,%0@+\n\t" -".chip 68k\n\t" -"dbra %2,1b\n\t" - :"=a" (to),"=a" (from),"=d" (tmp) - :"0" (to),"1" (from) ,"2" (PAGE_SIZE /32 -1 ) - ); +unsigned long tmp; + + __asm__ __volatile__("1:\t" +".chip 68040\n\t" +"move16 %1@+,%0@+\n\t" +"move16 %1@+,%0@+\n\t" +".chip 68k\n\t" +"dbra %2,1b\n\t" + :"=a" (to),"=a" (from),"=d" (tmp) + :"0" (to),"1" (from),"2" (PAGE_SIZE /32 -1 )); }static inline void clear_page (void *page)
@@ -95,23 +94,23 @@ static inline void *__va(unsigned long paddr)#define __pa (x) ___pa((unsigned long)(x))static inline unsigned long ___pa (unsigned long x) { -if (x ==0 ) -return 0 ; -if (x >=PAGE_OFFSET ) -return (x-PAGE_OFFSET ); -else -return (x+0x2000000 ); +if (x ==0 ) +return 0 ; +if (x >=PAGE_OFFSET ) +return (x -PAGE_OFFSET ); +else +return (x +0x2000000 ); }static inline void *__va (unsigned long x) { -if (x ==0 ) -return (void *)0 ; +if (x ==0 ) +return (void *)0 ; -if (x <0x2000000 ) -return (void *)(x+PAGE_OFFSET ); -else -return (void *)(x-0x2000000 ); +if (x <0x2000000 ) +return (void *)(x +PAGE_OFFSET ); +else +return (void *)(x -0x2000000 ); }#endif /* CONFIG_SUN3 */
Signature · 1 line
2.34.1
Geert Uytterhoeven
maintainerPATCH 5/5 m68k: fpsp040: Fix indentation by 5 spaces
In reply to Geert UytterhoevenIndentation should use TABs, not spaces.
--- arch/m68k/fpsp040/slogn.S | 88 +++++++++++++++++++-------------------- 1 file changed, 44 insertions(+), 44 deletions(-)
arch/m68k/fpsp040/slogn.S +44 -44
@@ -261,56 +261,56 @@ slognd: |----the value TWOTO100 is no longer needed. |----Note that this code assumes the denormalized input is NON-ZERO. - moveml %d2-%d7,-(%a7) | ...save some registers - movel #0x00000000,%d3 | ...D3 is exponent of smallest norm. # - movel 4(%a0),%d4 - movel 8(%a0),%d5 | ...(D4,D5) is (Hi_X,Lo_X) - clrl %d2 | ...D2 used for holding K + moveml %d2-%d7,-(%a7) | ...save some registers + movel #0x00000000,%d3 | ...D3 is exponent of smallest norm. # + movel 4(%a0),%d4 + movel 8(%a0),%d5 | ...(D4,D5) is (Hi_X,Lo_X) + clrl %d2 | ...D2 used for holding K - tstl %d4 - bnes HiX_not0 + tstl %d4 + bnes HiX_not0 HiX_0: - movel %d5,%d4 - clrl %d5 - movel #32,%d2 - clrl %d6 - bfffo %d4{#0:#32},%d6 - lsll %d6,%d4 - addl %d6,%d2 | ...(D3,D4,D5) is normalized - - movel %d3,X(%a6) - movel %d4,XFRAC(%a6) - movel %d5,XFRAC+4(%a6) - negl %d2 - movel %d2,ADJK(%a6) - fmovex X(%a6),%fp0 - moveml (%a7)+,%d2-%d7 | ...restore registers - lea X(%a6),%a0 - bras LOGBGN | ...begin regular log(X) + movel %d5,%d4 + clrl %d5 + movel #32,%d2 + clrl %d6 + bfffo %d4{#0:#32},%d6 + lsll %d6,%d4 + addl %d6,%d2 | ...(D3,D4,D5) is normalized + + movel %d3,X(%a6) + movel %d4,XFRAC(%a6) + movel %d5,XFRAC+4(%a6) + negl %d2 + movel %d2,ADJK(%a6) + fmovex X(%a6),%fp0 + moveml (%a7)+,%d2-%d7 | ...restore registers + lea X(%a6),%a0 + bras LOGBGN | ...begin regular log(X) HiX_not0: - clrl %d6 - bfffo %d4{#0:#32},%d6 | ...find first 1 - movel %d6,%d2 | ...get k - lsll %d6,%d4 - movel %d5,%d7 | ...a copy of D5 - lsll %d6,%d5 - negl %d6 - addil #32,%d6 - lsrl %d6,%d7 - orl %d7,%d4 | ...(D3,D4,D5) normalized - - movel %d3,X(%a6) - movel %d4,XFRAC(%a6) - movel %d5,XFRAC+4(%a6) - negl %d2 - movel %d2,ADJK(%a6) - fmovex X(%a6),%fp0 - moveml (%a7)+,%d2-%d7 | ...restore registers - lea X(%a6),%a0 - bras LOGBGN | ...begin regular log(X) + clrl %d6 + bfffo %d4{#0:#32},%d6 | ...find first 1 + movel %d6,%d2 | ...get k + lsll %d6,%d4 + movel %d5,%d7 | ...a copy of D5 + lsll %d6,%d5 + negl %d6 + addil #32,%d6 + lsrl %d6,%d7 + orl %d7,%d4 | ...(D3,D4,D5) normalized + + movel %d3,X(%a6) + movel %d4,XFRAC(%a6) + movel %d5,XFRAC+4(%a6) + negl %d2 + movel %d2,ADJK(%a6) + fmovex X(%a6),%fp0 + moveml (%a7)+,%d2-%d7 | ...restore registers + lea X(%a6),%a0 + bras LOGBGN | ...begin regular log(X) .global slogn
Signature · 1 line
2.34.1