[Skiboot] [PATCH 17/36] sparse: fix warning constant is so big it is long in hw/psi.c

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


hw/psi.c:526:24: warning: constant 0x000000ff00000000 is so big it is long

Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
 hw/psi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/psi.c b/hw/psi.c
index cb0dbabeef87..0823ec80f268 100644
--- a/hw/psi.c
+++ b/hw/psi.c
@@ -523,7 +523,7 @@ void psi_irq_reset(void)
 
 	list_for_each(&psis, psi, list) {
 		/* Mask the interrupt & clean the XIVR */
-		xivr = 0x000000ff00000000;
+		xivr = 0x000000ff00000000UL;
 		xivr |=	P7_IRQ_BUID(psi->interrupt) << 16;
 		out_be64(psi->regs + PSIHB_XIVR, xivr);
 
-- 
2.1.4



More information about the Skiboot mailing list