[PATCH] frv: Add missing qualifier to memcpy_fromio() prototype
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 23 Jun 2006 09:04:11 +0000 (02:04 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 23 Jun 2006 14:42:55 +0000 (07:42 -0700)
The memcpy_fromio() function should have a const qualifier on its source
pointer.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-frv/io.h

index f49398a82977a6a92fa750409bfb5102bd79b01f..7765f5528894009886a62e647a08d8eeb96fc1fa 100644 (file)
@@ -116,7 +116,7 @@ static inline void memset_io(volatile void __iomem *addr, unsigned char val, int
        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);
 }