From: Al Viro Date: Fri, 23 Jun 2006 09:04:11 +0000 (-0700) Subject: [PATCH] frv: Add missing qualifier to memcpy_fromio() prototype X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5e591a55576b60156ac3dbc5087660ed82646d66;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [PATCH] frv: Add missing qualifier to memcpy_fromio() prototype The memcpy_fromio() function should have a const qualifier on its source pointer. Signed-off-by: Al Viro Signed-off-by: David Howells Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/include/asm-frv/io.h b/include/asm-frv/io.h index f49398a82977..7765f5528894 100644 --- a/include/asm-frv/io.h +++ b/include/asm-frv/io.h @@ -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); }