]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Fix warnings in es7000
authorAndi Kleen <ak@suse.de>
Tue, 24 Aug 2004 04:29:18 +0000 (21:29 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 24 Aug 2004 04:29:18 +0000 (21:29 -0700)
Fix warnings in es7000.

Otherwise gcc 3.3 complains about too large integer values.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/mach-es7000/es7000.h
arch/i386/mach-es7000/es7000plat.c

index 1cb878fc5b2a7efa4e4408ed3ae0f140d4a9093d..70691f0c4ce28a8ae5cd9b6fb7fa517c5d6ba509 100644 (file)
@@ -29,7 +29,7 @@
 
 #define        MIP_BUSY                1
 #define        MIP_SPIN                0xf0000
-#define        MIP_VALID               0x0100000000000000
+#define        MIP_VALID               0x0100000000000000ULL
 #define        MIP_PORT(VALUE) ((VALUE >> 32) & 0xffff)
 
 #define        MIP_RD_LO(VALUE)        (VALUE & 0xffffffff)   
index 784576c53c05142ef1a8b808db61aa26d4c040c3..99cfe4bf00331a9b0900c7bcf6e7d2144791bf14 100644 (file)
@@ -237,7 +237,7 @@ es7000_mip_write(struct mip_reg *mip_reg)
        }
 
        status = ((unsigned long long)mip_reg->off_0 &
-               (unsigned long long)0xffff0000000000) >> 48;
+               (unsigned long long)0xffff0000000000ULL) >> 48;
        mip_reg->off_38 = ((unsigned long long)mip_reg->off_38 &
                (unsigned long long)~MIP_VALID);
        return status;