From b88349203f128c339e91811bb399c83cc09a4d6a Mon Sep 17 00:00:00 2001 From: luporl Date: Tue, 11 Jun 2019 11:23:15 +0000 Subject: [PATCH] [PPC] Fix build error when POWERNV is disabled When building a kernel supporting PSERIES but not POWERNV, the compiler would complain about an error variable being possibly used before being initialized. In practice, however, this should never happen. In any case, it is now initialized to an error value. --- sys/powerpc/pseries/xics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/powerpc/pseries/xics.c b/sys/powerpc/pseries/xics.c index b5b54be90090..f65a68861bf1 100644 --- a/sys/powerpc/pseries/xics.c +++ b/sys/powerpc/pseries/xics.c @@ -324,7 +324,7 @@ xicp_bind(device_t dev, u_int irq, cpuset_t cpumask, void **priv) struct xicp_softc *sc = device_get_softc(dev); struct xicp_intvec *iv; cell_t status, cpu; - int ncpus, i, error; + int ncpus, i, error = -1; /* Ignore IPIs */ if (irq == MAX_XICP_IRQS)