Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c0cf500145b4154adcbc55afc1a63db24cee84a2
Commit:     c0cf500145b4154adcbc55afc1a63db24cee84a2
Parent:     9815778ae016004c33ce267a00b7d567192ef6e7
Author:     Atsushi Nemoto <[EMAIL PROTECTED]>
AuthorDate: Wed Jul 11 23:12:00 2007 +0900
Committer:  Ralf Baechle <[EMAIL PROTECTED]>
CommitDate: Thu Jul 12 17:41:10 2007 +0100

    [MIPS] Workaround for a sparse warning in include/asm-mips/io.h
    
    CKSEG1ADDR() returns unsigned int value on 32bit kernel.  Cast it to
    unsigned long to get rid of this warning:
    
    include2/asm/io.h:215:12: warning: cast adds address space to expression 
(<asn:2>)
    
    Signed-off-by: Atsushi Nemoto <[EMAIL PROTECTED]>
    Signed-off-by: Ralf Baechle <[EMAIL PROTECTED]>
---
 include/asm-mips/io.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/asm-mips/io.h b/include/asm-mips/io.h
index 12bcc1f..7ba9289 100644
--- a/include/asm-mips/io.h
+++ b/include/asm-mips/io.h
@@ -212,7 +212,8 @@ static inline void __iomem * __ioremap_mode(phys_t offset, 
unsigned long size,
                 */
                if (__IS_LOW512(phys_addr) && __IS_LOW512(last_addr) &&
                    flags == _CACHE_UNCACHED)
-                       return (void __iomem *)CKSEG1ADDR(phys_addr);
+                       return (void __iomem *)
+                               (unsigned long)CKSEG1ADDR(phys_addr);
        }
 
        return __ioremap(offset, size, flags);
-
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  http://vger.kernel.org/majordomo-info.html

Reply via email to