Skip to contentSkip to conversation

x86: coding style fixes in arch/x86/lib/io_64.c

PATCH Applied Paolo Ciarrocchi 3 participants 3 messages Feb 17, 2008 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: coding style fixes in arch/x86/lib/io_64.c

[PATCH] x86: coding style fixes in arch/x86/lib/io_64.c

This simple patch makes the file error free (according to checkpatch.pl)

---
 arch/x86/lib/io_64.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
arch/x86/lib/io_64.c +5 -5
index 87b4a4e..71fdf4b 100644
@@ -2,15 +2,15 @@
 #include <asm/io.h>
 #include <linux/module.h>
 
-void __memcpy_toio(unsigned long dst,const void*src,unsigned len)
+void __memcpy_toio(unsigned long dst, const void*src, unsigned len)
 {
-	__inline_memcpy((void *) dst,src,len);
+	__inline_memcpy((void *) dst, src, len);
 }
 EXPORT_SYMBOL(__memcpy_toio);
 
-void __memcpy_fromio(void *dst,unsigned long src,unsigned len)
+void __memcpy_fromio(void *dst, unsigned long src, unsigned len)
 {
-	__inline_memcpy(dst,(const void *) src,len);
+	__inline_memcpy(dst, (const void *) src, len);
 }
 EXPORT_SYMBOL(__memcpy_fromio);
 
@@ -18,6 +18,6 @@ void memset_io(volatile void __iomem *a, int b, size_t c)
 {
 	/* XXX: memset can mangle the IO patterns quite a bit.
 	   perhaps it would be better to use a dumb one */
-	memset((void *)a,b,c);
+	memset((void *)a, b, c);
 }
 EXPORT_SYMBOL(memset_io);
Signature · 1 line
1.5.4.1.183.gf873
#1 lore raw
Quoted 16 lines · Paolo Ciarrocchi

[PATCH] x86: coding style fixes in arch/x86/lib/io_64.c

This simple patch makes the file error free (according to checkpatch.pl)

---
 arch/x86/lib/io_64.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
arch/x86/lib/io_64.c +0 -0
index 87b4a4e..71fdf4b 100644

arch/x86/lib/io_64.c line 5

Quoted 5 lines
arch/x86/lib/io_64.c +1 -1
@@ -2,15 +2,15 @@
 #include <asm/io.h>
 #include <linux/module.h>
 
-void __memcpy_toio(unsigned long dst,const void*src,unsigned len)
+void __memcpy_toio(unsigned long dst, const void*src, unsigned len)
                                               ^^^^^^^^

Please, fix all coding style violations so that nobody will do this in next 5 years or so.

Applied
#2 lore raw
In reply to Paolo Ciarrocchi
Quoted 4 lines · Paolo Ciarrocchi

[PATCH] x86: coding style fixes in arch/x86/lib/io_64.c

This simple patch makes the file error free (according to checkpatch.pl)

thanks, applied. (i fixed the other minor style problems in this file too, so that we have it all in a single patch)

Ingo