Commit 4b44f810 authored by Paolo Ciarrocchi's avatar Paolo Ciarrocchi Committed by Ingo Molnar

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

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: default avatarPaolo Ciarrocchi <paolo.ciarrocchi@gmail.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent e43eb7ba
#include <linux/string.h> #include <linux/string.h>
#include <asm/io.h>
#include <linux/module.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); 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); EXPORT_SYMBOL(__memcpy_fromio);
void memset_io(volatile void __iomem *a, int b, size_t c) 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 */ * TODO: memset can mangle the IO patterns quite a bit.
memset((void *)a,b,c); * perhaps it would be better to use a dumb one:
*/
memset((void *)a, b, c);
} }
EXPORT_SYMBOL(memset_io); EXPORT_SYMBOL(memset_io);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment