[Skiboot] [PATCH] Fixup init of struct lpc_client
Stewart Smith
stewart at linux.vnet.ibm.com
Fri Mar 3 18:21:57 AEDT 2017
Gcc 4.8 would warn:
hw/lpc-uart.c: In function 'uart_setup_os_passthrough':
hw/lpc-uart.c:428:2: error: missing initializer for field 'reset' of 'struct lpc_client' [-Werror=missing-field-initializers]
Fixes: a2940770ca6da2c58081f8207aded197e45f6cd6
Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
hw/lpc-uart.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/hw/lpc-uart.c b/hw/lpc-uart.c
index e536bbd9d20c..9034fbd53070 100644
--- a/hw/lpc-uart.c
+++ b/hw/lpc-uart.c
@@ -425,6 +425,9 @@ static void uart_setup_os_passthrough(void)
char *path;
static struct lpc_client uart_lpc_os_client = {
+ .reset = NULL,
+ .interrupt = NULL,
+ .interrupts = 0
};
dt_add_property_strings(uart_node, "status", "ok");
--
2.9.3
More information about the Skiboot
mailing list