diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2019-02-28 11:14:43 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-03-01 15:14:01 +1100 |
commit | c526a280dcd1ba1ef85a59da98ffaf904b39bc57 (patch) | |
tree | 9397a55f25e8c168fb4f812c76410a26a45050a0 /hdata | |
parent | 0eea56b06b4ff23163d5dc400f800cb827c1948f (diff) | |
download | skiboot-c526a280dcd1ba1ef85a59da98ffaf904b39bc57.zip skiboot-c526a280dcd1ba1ef85a59da98ffaf904b39bc57.tar.gz skiboot-c526a280dcd1ba1ef85a59da98ffaf904b39bc57.tar.bz2 |
hdata/memory: Fix warning message
Even though we added memory to device tree, we are getting below warning.
Sample log:
[ 57.136949696,3] Unable to use memory range 0 from MSAREA 0
[ 57.137049753,3] Unable to use memory range 0 from MSAREA 1
[ 57.137152335,3] Unable to use memory range 0 from MSAREA 2
[ 57.137251218,3] Unable to use memory range 0 from MSAREA 3
Fixes: 4822a7ba (hdata/memory: Add NVDIMM support)
CC: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Reviewed-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hdata')
-rw-r--r-- | hdata/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hdata/memory.c b/hdata/memory.c index 1ac03c1..a85f4eb 100644 --- a/hdata/memory.c +++ b/hdata/memory.c @@ -608,7 +608,7 @@ static void get_msareas(struct dt_node *root, status = GETFIELD(PHYS_ATTR_STATUS_MASK, attr); } - if (add_address_range(root, id, arange, type, status)) + if (!add_address_range(root, id, arange, type, status)) prerror("Unable to use memory range %d from MSAREA %d\n", j, i); arange = (void *)arange + be32_to_cpu(arr->esize); |