diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-10 09:12:46 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-10 09:12:46 +1100 |
commit | 376761a65d020a7e3c80c5e2c56552d140d44e27 (patch) | |
tree | 272888c5e4d321005f17bb8b62f485431782b5e9 /hw | |
parent | b7ef98011d49ea0628ace0ead312cbdf8abfa138 (diff) | |
download | skiboot-376761a65d020a7e3c80c5e2c56552d140d44e27.zip skiboot-376761a65d020a7e3c80c5e2c56552d140d44e27.tar.gz skiboot-376761a65d020a7e3c80c5e2c56552d140d44e27.tar.bz2 |
sparse: fix warning constant is so big it is (unsigned) long in hw/p5ioc2.c
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@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/p5ioc2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hw/p5ioc2.c b/hw/p5ioc2.c index b0592d6..ec9b7da 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 |