[Skiboot] [PATCH 15/36] sparse: fix constant is so big it's long in hw/nx-rng.c
Stewart Smith
stewart at linux.vnet.ibm.com
Tue Nov 10 15:18:09 AEDT 2015
hw/nx-rng.c:73:29: warning: constant 0x400000000 is so big it is long
Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
hw/nx-rng.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/nx-rng.c b/hw/nx-rng.c
index 063848d97c35..f652bb5d91c2 100644
--- a/hw/nx-rng.c
+++ b/hw/nx-rng.c
@@ -70,7 +70,7 @@ void nx_create_rng_node(struct dt_node *node)
}
rng_len = (u64[]){ 0x1000, /* 4K */
0x10000, /* 64K */
- 0x400000000, /* 16G*/
+ 0x400000000UL, /* 16G*/
0x100000, /* 1M */
0x1000000 /* 16M */} [len];
--
2.1.4
More information about the Skiboot
mailing list