[Skiboot] [PATCH 24/36] sparse: fix cast from restricted beint64_t in hdata/memory.c
Stewart Smith
stewart at linux.vnet.ibm.com
Tue Nov 10 15:18:18 AEDT 2015
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 at linux.vnet.ibm.com>
---
hdata/memory.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hdata/memory.c b/hdata/memory.c
index e90f9de142b8..01cc61bd5625 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 */
--
2.1.4
More information about the Skiboot
mailing list