[Skiboot] [PATCH 33/36] sparse: add missing endian conversion in fsp-attn.c

Stewart Smith stewart at linux.vnet.ibm.com
Tue Nov 10 15:18:27 AEDT 2015


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 at linux.vnet.ibm.com>
---
 hw/fsp/fsp-attn.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/fsp/fsp-attn.c b/hw/fsp/fsp-attn.c
index 8a2ec9254dcd..7b561926f7eb 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;
-- 
2.1.4



More information about the Skiboot mailing list