diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-10 11:47:22 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-10 11:47:22 +1100 |
commit | bad57a47d22d83b3fe7aed0c635bee71b2bc42eb (patch) | |
tree | fc204cf1b48278034ecbc1679e346d48ae78300f /hdata | |
parent | 2e86b578d788c689b5b5748006027a3e3d4bb656 (diff) | |
download | skiboot-bad57a47d22d83b3fe7aed0c635bee71b2bc42eb.zip skiboot-bad57a47d22d83b3fe7aed0c635bee71b2bc42eb.tar.gz skiboot-bad57a47d22d83b3fe7aed0c635bee71b2bc42eb.tar.bz2 |
sparse: fix cast from restricted beint64_t in hdata/memory.c
Since skiboot is BE, no skiboot binary change
hdata/memory.c:131:9: warning: cast from restricted beint64_t
hdata/memory.c:131:9: warning: cast from restricted beint64_t
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hdata')
-rw-r--r-- | hdata/memory.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hdata/memory.c b/hdata/memory.c index e90f9de..01cc61b 100644 --- a/hdata/memory.c +++ b/hdata/memory.c @@ -130,7 +130,8 @@ static bool add_address_range(struct dt_node *root, prlog(PR_DEBUG, " Range: 0x%016llx..0x%016llx " "on Chip 0x%x mattr: 0x%x\n", - (long long)arange->start, (long long)arange->end, + (long long)be64_to_cpu(arange->start), + (long long)be64_to_cpu(arange->end), chip_id, arange->mirror_attr); /* reg contains start and length */ |