aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-11-10 14:41:27 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-11-10 14:41:27 +1100
commit690f6d1fe6c95d22902860094f372c08f52d596a (patch)
tree4fd8be58f60e37ef2eb1ecf8cc2047182f5eeda9 /hw
parentbd4e108e747bd58dc7a9621b2b695e55854ba570 (diff)
downloadskiboot-690f6d1fe6c95d22902860094f372c08f52d596a.zip
skiboot-690f6d1fe6c95d22902860094f372c08f52d596a.tar.gz
skiboot-690f6d1fe6c95d22902860094f372c08f52d596a.tar.bz2
sparse: add missing endian conversion in fsp-attn.c
hw/fsp/fsp-attn.c:104:30: warning: incorrect type in assignment (different base types) hw/fsp/fsp-attn.c:104:30: expected restricted beint32_t <noident> hw/fsp/fsp-attn.c:104:30: got unsigned int [unsigned] [usertype] <noident> No generated code change for skiboot as we're BE Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/fsp/fsp-attn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/fsp/fsp-attn.c b/hw/fsp/fsp-attn.c
index 8a2ec92..7b56192 100644
--- a/hw/fsp/fsp-attn.c
+++ b/hw/fsp/fsp-attn.c
@@ -102,7 +102,7 @@ static void update_sp_attn_area(const char *msg)
init_sp_attn_area();
ti_attn->src_word[0] =
- (uint32_t)((uint64_t)__builtin_return_address(0) & 0xffffffff);
+ cpu_to_be32((uint32_t)((uint64_t)__builtin_return_address(0) & 0xffffffff));
snprintf(ti_attn->msg.version, VERSION_LEN, "%s", version);
ent_cnt = STACK_BUF_ENTRIES;