Commit:     3c215b6680b347593705e010688e80400d772763
Parent:     95c1e9aefa5d3a2dd61304797cad96e8fdcd95ce
Author:     Andrew Morton <[EMAIL PROTECTED]>
AuthorDate: Wed Oct 17 18:04:39 2007 +0200
Committer:  Thomas Gleixner <[EMAIL PROTECTED]>
CommitDate: Wed Oct 17 20:16:40 2007 +0200

    x86: asm-i386/io.h fix constness
    - Fix this:
    include/asm/io.h: In function `memcpy_fromio':
    include/asm/io.h:208: warning: passing argument 2 of `__memcpy' discards 
qualifiers from pointer target type
    - Clean up code a bit
    Reported-by: Uwe Bugla <[EMAIL PROTECTED]>
    Cc: Andi Kleen <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
    Signed-off-by: Thomas Gleixner <[EMAIL PROTECTED]>
 include/asm-x86/io_32.h |   17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/include/asm-x86/io_32.h b/include/asm-x86/io_32.h
index 4ea7b1a..fe881cd 100644
--- a/include/asm-x86/io_32.h
+++ b/include/asm-x86/io_32.h
@@ -199,17 +199,22 @@ static inline void writel(unsigned int b, volatile void 
__iomem *addr)
 #define mmiowb()
-static inline void memset_io(volatile void __iomem *addr, unsigned char val, 
int count)
+static inline void
+memset_io(volatile void __iomem *addr, unsigned char val, int count)
-       memset((void __force *) addr, val, count);
+       memset((void __force *)addr, val, count);
-static inline void memcpy_fromio(void *dst, const 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, (const void __force *)src, count);
-static inline void memcpy_toio(volatile void __iomem *dst, const void *src, 
int count)
+static inline void
+memcpy_toio(volatile void __iomem *dst, const void *src, int count)
-       __memcpy((void __force *) dst, src, count);
+       __memcpy((void __force *)dst, src, count);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to