[Skiboot] [PATCH] hdata/spira: silence 'so big is unsigned long' sparse warnings

Stewart Smith stewart at linux.vnet.ibm.com
Thu Sep 28 16:40:38 AEST 2017


hdata/spira.c:1401:17: warning: constant 0x8000000009010c3f is so big it is unsigned long
hdata/spira.c:1401:17: warning: constant 0x800000000c010c3f is so big it is unsigned long
hdata/spira.c:1401:17: warning: constant 0x8000000009010c3f is so big it is unsigned long
hdata/spira.c:1401:17: warning: constant 0x800000000c010c3f is so big it is unsigned long

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

diff --git a/hdata/spira.c b/hdata/spira.c
index 7e88348fc4f7..07d172b30afe 100644
--- a/hdata/spira.c
+++ b/hdata/spira.c
@@ -1322,8 +1322,8 @@ static void add_stop_levels(void)
 
 #define NPU_BASE 0x5011000
 #define NPU_SIZE 0x2c
-#define NPU_INDIRECT0	0x8000000009010c3f
-#define NPU_INDIRECT1	0x800000000c010c3f
+#define NPU_INDIRECT0	0x8000000009010c3fULL
+#define NPU_INDIRECT1	0x800000000c010c3fULL
 
 static void add_npu(struct dt_node *xscom, const struct HDIF_array_hdr *links,
 			int npu_index, int phb_index)
-- 
2.13.5



More information about the Skiboot mailing list