[Skiboot] [PATCH 14/36] sparse: fix constant is so big warning in hw/xscom.c

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


hw/xscom.c:425:23: warning: constant 0x221EF04980000000 is so big it is long

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

diff --git a/hw/xscom.c b/hw/xscom.c
index c8e13beccbb9..a7a1705ab59a 100644
--- a/hw/xscom.c
+++ b/hw/xscom.c
@@ -422,7 +422,7 @@ int64_t xscom_read_cfam_chipid(uint32_t partid, uint32_t *chip_id)
 	 * something up (Murano DD2.1)
 	 */
 	if (chip_quirk(QUIRK_NO_F000F))
-		val = 0x221EF04980000000;
+		val = 0x221EF04980000000UL;
 	else
 		rc = xscom_read(partid, 0xf000f, &val);
 
-- 
2.1.4



More information about the Skiboot mailing list