diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-10 14:46:55 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-11-10 14:46:55 +1100 |
commit | 01cd49016c80fef1c2f3c91e496ebf8592556e0c (patch) | |
tree | 1b309542aba014c6f69c13c7fd0d2fc3c62203bb /hw/fsp/fsp-dump.c | |
parent | 690f6d1fe6c95d22902860094f372c08f52d596a (diff) | |
download | skiboot-01cd49016c80fef1c2f3c91e496ebf8592556e0c.zip skiboot-01cd49016c80fef1c2f3c91e496ebf8592556e0c.tar.gz skiboot-01cd49016c80fef1c2f3c91e496ebf8592556e0c.tar.bz2 |
sparse: correct endian conversion of sglist
No generated code change for skiboot, as is BE
hw/fsp/fsp-dump.c:422:31: warning: invalid assignment: +=
hw/fsp/fsp-dump.c:422:31: left side has type signed long long
hw/fsp/fsp-dump.c:422:31: right side has type restricted beint64_t
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/fsp/fsp-dump.c')
-rw-r--r-- | hw/fsp/fsp-dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/fsp/fsp-dump.c b/hw/fsp/fsp-dump.c index ae5bfee..b1dd090 100644 --- a/hw/fsp/fsp-dump.c +++ b/hw/fsp/fsp-dump.c @@ -419,7 +419,7 @@ static int64_t validate_dump_sglist(struct opal_sg_list *list, for (i = 0; i < num_entries; i++) { entry = &sg->entry[i]; - *size += entry->length; + *size += be64_to_cpu(entry->length); /* All entries must be aligned */ if (((uint64_t)be64_to_cpu(entry->data)) & 0xfff) |