Commit 0f0a76be authored by Linus Torvalds's avatar Linus Torvalds Committed by Tony Luck

Fix x86 src pointer type for memcpy_fromio().

It's "const volatile __iomem *". The "const" was missing.
parent a738e990
...@@ -184,7 +184,7 @@ static inline void memset_io(volatile void __iomem *addr, unsigned char val, int ...@@ -184,7 +184,7 @@ static inline void memset_io(volatile void __iomem *addr, unsigned char val, int
{ {
memset((void __force *) addr, val, count); memset((void __force *) addr, val, count);
} }
static inline void memcpy_fromio(void *dst, volatile void __iomem *src, int count) static inline void memcpy_fromio(void *dst, const volatile void __iomem *src, int count)
{ {
__memcpy(dst, (void __force *) src, count); __memcpy(dst, (void __force *) src, count);
} }
......
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