Commit 82a71519 authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds

[PATCH] x86_64: Move memset_io out of line to avoid warnings.

Move memset_io out of line to avoid warnings.
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b41c77cf
...@@ -13,3 +13,11 @@ void __memcpy_fromio(void *dst,unsigned long src,unsigned len) ...@@ -13,3 +13,11 @@ 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)
{
/* 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);
}
EXPORT_SYMBOL(memset_io);
...@@ -260,10 +260,8 @@ static inline void memcpy_toio(volatile void __iomem *to, const void *from, unsi ...@@ -260,10 +260,8 @@ static inline void memcpy_toio(volatile void __iomem *to, const void *from, unsi
{ {
__memcpy_toio((unsigned long)to,from,len); __memcpy_toio((unsigned long)to,from,len);
} }
static inline void memset_io(volatile void __iomem *a, int b, size_t c)
{ void memset_io(volatile void __iomem *a, int b, size_t c);
memset((__force void *)a,b,c);
}
/* /*
* ISA space is 'always mapped' on a typical x86 system, no need to * ISA space is 'always mapped' on a typical x86 system, no need to
......
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