aboutsummaryrefslogtreecommitdiff
path: root/hw/lpc-uart.c
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-11-10 14:29:20 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-11-10 14:29:20 +1100
commitbd4e108e747bd58dc7a9621b2b695e55854ba570 (patch)
tree684c03cf938fc894b1849595f723e631c2b3b1fc /hw/lpc-uart.c
parent9609061b6f0f37f6b9c3d85d84bcce4e5d1cafe5 (diff)
downloadskiboot-bd4e108e747bd58dc7a9621b2b695e55854ba570.zip
skiboot-bd4e108e747bd58dc7a9621b2b695e55854ba570.tar.gz
skiboot-bd4e108e747bd58dc7a9621b2b695e55854ba570.tar.bz2
sparse: fix incorrect type in assignment warning in hw/lpc-uart.c
hw/lpc-uart.c:77:25: warning: incorrect type in assignment (different base types) hw/lpc-uart.c:77:25: expected restricted beint16_t [assigned] [usertype] in_count hw/lpc-uart.c:77:25: got unsigned char [unsigned] [usertype] in_count Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/lpc-uart.c')
-rw-r--r--hw/lpc-uart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/lpc-uart.c b/hw/lpc-uart.c
index e856563..b6670b3 100644
--- a/hw/lpc-uart.c
+++ b/hw/lpc-uart.c
@@ -74,7 +74,7 @@ static void uart_trace(u8 ctx, u8 cnt, u8 irq_state, u8 in_count)
t.uart.ctx = ctx;
t.uart.cnt = cnt;
t.uart.irq_state = irq_state;
- t.uart.in_count = in_count;
+ t.uart.in_count = cpu_to_be16(in_count);
trace_add(&t, TRACE_UART, sizeof(struct trace_uart));
}