Message ID | 20170928064038.9676-1-stewart@linux.vnet.ibm.com |
---|---|
State | Accepted |
Headers | show |
Series | hdata/spira: silence 'so big is unsigned long' sparse warnings | expand |
Stewart Smith <stewart@linux.vnet.ibm.com> writes: > 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@linux.vnet.ibm.com> > --- > hdata/spira.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Merged to master as of 39b1d9a787326a6452f15ac94f19b24d009a63a6
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)
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@linux.vnet.ibm.com> --- hdata/spira.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)