Message ID | 20171101212427.20853-1-gpiccoli@linux.vnet.ibm.com |
---|---|
State | Accepted |
Headers | show |
Series | xive: Trivial fix for compilation error when enabling xive debug | expand |
"Guilherme G. Piccoli" <gpiccoli@linux.vnet.ibm.com> writes: > 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@linux.vnet.ibm.com> > --- > hw/xive.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Merged to master as of 1e6cfd7d0459b7af0d5766b7f2b514d05714f92e
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++) {
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@linux.vnet.ibm.com> --- hw/xive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)