[Skiboot] [PATCH] xive: Trivial fix for compilation error when enabling xive debug
Guilherme G. Piccoli
gpiccoli at linux.vnet.ibm.com
Thu Nov 2 08:24:27 AEDT 2017
Without this, we get:
hw/xive.c: In function ‘xive_special_cache_check’:
hw/xive.c:2982:9: error: missing initializer for field ‘w0’ of
‘struct xive_vp’ [-Werror=missing-field-initializers]
Signed-off-by: Guilherme G. Piccoli <gpiccoli at linux.vnet.ibm.com>
---
hw/xive.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/xive.c b/hw/xive.c
index 4fd8a301..caf1c2ff 100644
--- a/hw/xive.c
+++ b/hw/xive.c
@@ -2979,7 +2979,7 @@ static inline bool xive_check_vpc_update(struct xive *x __unused,
#ifdef XIVE_EXTRA_CHECK_INIT_CACHE
static void xive_special_cache_check(struct xive *x, uint32_t blk, uint32_t idx)
{
- struct xive_vp vp = {};
+ struct xive_vp vp = {0};
uint32_t i;
for (i = 0; i < 1000; i++) {
--
2.15.0.rc0
More information about the Skiboot
mailing list