[Skiboot] [PATCH 18/36] sparse: fix warning constant is so big it is (unsigned) long in hw/p5ioc2.c

Stewart Smith stewart at linux.vnet.ibm.com
Tue Nov 10 15:18:12 AEDT 2015


hw/p5ioc2.c:80:18: warning: constant 0x0000080000000000 is so big it is long
hw/p5ioc2.c:84:18: warning: constant 0xffffff7fffffffff is so big it is unsigned long
hw/p5ioc2.c:87:44: warning: constant 0x0001000200000000 is so big it is long
hw/p5ioc2.c:185:33: warning: constant 0x5005DDDED2000000 is so big it is long

Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
 hw/p5ioc2.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/hw/p5ioc2.c b/hw/p5ioc2.c
index b0592d614bd6..ec9b7dad0942 100644
--- a/hw/p5ioc2.c
+++ b/hw/p5ioc2.c
@@ -77,14 +77,14 @@ static void p5ioc2_inits(struct p5ioc2 *ioc)
 	 */
 	/* mask off interrupt presentation timeout in FIRMC */
 	out_be64(ioc->regs + (P5IOC2_FIRMC | P5IOC2_REG_OR),
-		 0x0000080000000000);
+		 0x0000080000000000UL);
 
 	/* turn off display alter mode */
 	out_be64(ioc->regs + (P5IOC2_CTL | P5IOC2_REG_AND),
-		 0xffffff7fffffffff);
+		 0xffffff7fffffffffUL);
 
 	/* setup hub and clustering interrupts BUIDs to 1 and 2 */
-	out_be64(ioc->regs + P5IOC2_SBUID, 0x0001000200000000);
+	out_be64(ioc->regs + P5IOC2_SBUID, 0x0001000200000000UL);
 
 	/* setup old style MSI BUID (should be unused but set it up anyway) */
 	out_be32(ioc->regs + P5IOC2_BUCO, 0xf);
@@ -182,7 +182,7 @@ static void p5ioc2_ca_init(struct p5ioc2 *ioc, int ca)
 	 */
 	//out_be64(regs + CA_CCR, 0x5045DDDED2000000);
 	// disable memlimit:
-	out_be64(regs + CA_CCR, 0x5005DDDED2000000);
+	out_be64(regs + CA_CCR, 0x5005DDDED2000000UL);
 
 	/* The system memory base/limit etc... setup will be done when the
 	 * user enables TCE via OPAL calls
-- 
2.1.4



More information about the Skiboot mailing list