Skip to content

Commit 0a29dfe

Browse files
committed
m68k: Fix indentation by 2 or 5 spaces in <asm/page_mm.h>
Indentation should use TABs, not spaces. Fix whitespace in reindented code while at it. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Link: https://lore.kernel.org/r/2819709eee2be69c93497d4e97413bd0e05a9268.1696602993.git.geert@linux-m68k.org
1 parent ab579ea commit 0a29dfe

File tree

1 file changed

+22
-23
lines changed

1 file changed

+22
-23
lines changed

arch/m68k/include/asm/page_mm.h

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,16 @@
1313
#ifdef CPU_M68040_OR_M68060_ONLY
1414
static inline void copy_page(void *to, void *from)
1515
{
16-
unsigned long tmp;
17-
18-
__asm__ __volatile__("1:\t"
19-
".chip 68040\n\t"
20-
"move16 %1@+,%0@+\n\t"
21-
"move16 %1@+,%0@+\n\t"
22-
".chip 68k\n\t"
23-
"dbra %2,1b\n\t"
24-
: "=a" (to), "=a" (from), "=d" (tmp)
25-
: "0" (to), "1" (from) , "2" (PAGE_SIZE / 32 - 1)
26-
);
16+
unsigned long tmp;
17+
18+
__asm__ __volatile__("1:\t"
19+
".chip 68040\n\t"
20+
"move16 %1@+,%0@+\n\t"
21+
"move16 %1@+,%0@+\n\t"
22+
".chip 68k\n\t"
23+
"dbra %2,1b\n\t"
24+
: "=a" (to), "=a" (from), "=d" (tmp)
25+
: "0" (to), "1" (from), "2" (PAGE_SIZE / 32 - 1));
2726
}
2827

2928
static inline void clear_page(void *page)
@@ -95,23 +94,23 @@ static inline void *__va(unsigned long paddr)
9594
#define __pa(x) ___pa((unsigned long)(x))
9695
static inline unsigned long ___pa(unsigned long x)
9796
{
98-
if(x == 0)
99-
return 0;
100-
if(x >= PAGE_OFFSET)
101-
return (x-PAGE_OFFSET);
102-
else
103-
return (x+0x2000000);
97+
if (x == 0)
98+
return 0;
99+
if (x >= PAGE_OFFSET)
100+
return (x - PAGE_OFFSET);
101+
else
102+
return (x + 0x2000000);
104103
}
105104

106105
static inline void *__va(unsigned long x)
107106
{
108-
if(x == 0)
109-
return (void *)0;
107+
if (x == 0)
108+
return (void *)0;
110109

111-
if(x < 0x2000000)
112-
return (void *)(x+PAGE_OFFSET);
113-
else
114-
return (void *)(x-0x2000000);
110+
if (x < 0x2000000)
111+
return (void *)(x + PAGE_OFFSET);
112+
else
113+
return (void *)(x - 0x2000000);
115114
}
116115
#endif /* CONFIG_SUN3 */
117116

0 commit comments

Comments
 (0)