Skip to content

Commit

Permalink
x86: coding style fixes in arch/x86/lib/io_64.c
Browse files Browse the repository at this point in the history
This simple patch makes the file error free (according to
checkpatch.pl)

no code changed:

arch/x86/lib/io_64.o:
   text    data     bss     dec     hex filename
    308       0       0     308     134 io_64.o.before
    308       0       0     308     134 io_64.o.after
md5:
3c64f9ed83d091678e849b36ca27bee3  io_64.o.before.asm
3c64f9ed83d091678e849b36ca27bee3  io_64.o.after.asm

Signed-off-by: Paolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Paolo Ciarrocchi authored and Ingo Molnar committed Feb 19, 2008
1 parent e43eb7b commit 4b44f81
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions arch/x86/lib/io_64.c
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
#include <linux/string.h>
#include <asm/io.h>
#include <linux/module.h>
#include <asm/io.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);

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);
/*
* TODO: memset can mangle the IO patterns quite a bit.
* perhaps it would be better to use a dumb one:
*/
memset((void *)a, b, c);
}
EXPORT_SYMBOL(memset_io);

0 comments on commit 4b44f81

Please sign in to comment.