diff mbox series

[06/10] sparse: lpc uart interrupt pointer endianness

Message ID 20190718065117.16923-7-stewart@linux.ibm.com
State Accepted
Headers show
Series Misc sparse fixes | expand

Checks

Context Check Description
snowpatch_ozlabs/apply_patch success Successfully applied on branch master (3a6fdede6ce117facec0108afe716cf5d0472c3f)
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot success Test snowpatch/job/snowpatch-skiboot on branch master
snowpatch_ozlabs/snowpatch_job_snowpatch-skiboot-dco success Signed-off-by present

Commit Message

Stewart Smith July 18, 2019, 6:51 a.m. UTC
hw/lpc-uart.c:674:47: warning: incorrect type in argument 1 (different base types)
hw/lpc-uart.c:674:47:    expected restricted beint32_t [usertype] be_val
hw/lpc-uart.c:674:47:    got unsigned int const [usertype]

Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
---
 hw/lpc-uart.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/hw/lpc-uart.c b/hw/lpc-uart.c
index bca10e0e98dc..f9643553341c 100644
--- a/hw/lpc-uart.c
+++ b/hw/lpc-uart.c
@@ -617,7 +617,7 @@  void uart_init(void)
 	const struct dt_property *prop;
 	struct dt_node *n;
 	char *path __unused;
-	const uint32_t *irqp;
+	const be32 *irqp;
 
 	/* Clean up after early_uart_init() */
 	mmio_uart_base = NULL;