Date: Tue, 11 Jun 2019 11:23:16 +0000 (UTC) From: Leandro Lupori <luporl@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r348900 - head/sys/powerpc/pseries Message-ID: <201906111123.x5BBNGZv020384@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906111123.x5BBNGZv020384>