From 1e6cfd7d0459b7af0d5766b7f2b514d05714f92e Mon Sep 17 00:00:00 2001 From: "Guilherme G. Piccoli" Date: Wed, 1 Nov 2017 19:24:27 -0200 Subject: xive: Trivial fix for compilation error when enabling xive debug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Stewart Smith --- hw/xive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xive.c b/hw/xive.c index bb17b38..df38074 100644 --- a/hw/xive.c +++ b/hw/xive.c @@ -3004,7 +3004,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++) { -- cgit v1.1