Author: luporl
Date: Tue Jun 11 11:23:15 2019
New Revision: 348900
URL: https://svnweb.freebsd.org/changeset/base/348900
Log:
[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.
Modified:
head/sys/powerpc/pseries/xics.c
Modified: head/sys/powerpc/pseries/xics.c
==============================================================================
--- head/sys/powerpc/pseries/xics.c Tue Jun 11 11:16:41 2019
(r348899)
+++ head/sys/powerpc/pseries/xics.c Tue Jun 11 11:23:15 2019
(r348900)
@@ -324,7 +324,7 @@ xicp_bind(device_t dev, u_int irq, cpuset_t cpumask, v
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)
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"