[PATCH] fix compile warning in pseries xics
Olof Johansson
olof at lixom.net
Wed May 30 00:27:15 EST 2007
On Tue, May 29, 2007 at 05:01:52PM +1000, Michael Neuling wrote:
> @@ -762,11 +763,12 @@ void xics_request_IPIs(void)
> */
> set_irq_handler(ipi, handle_percpu_irq);
> if (firmware_has_feature(FW_FEATURE_LPAR))
> - request_irq(ipi, xics_ipi_action_lpar, IRQF_DISABLED,
> - "IPI", NULL);
> + rc = request_irq(ipi, xics_ipi_action_lpar, IRQF_DISABLED,
> + "IPI", NULL);
> else
> - request_irq(ipi, xics_ipi_action_direct, IRQF_DISABLED,
> - "IPI", NULL);
> + rc = request_irq(ipi, xics_ipi_action_direct, IRQF_DISABLED,
> + "IPI", NULL);
> + BUG_ON(rc);
Is this late enough during boot that you actually get useful information
out of a BUG()? It might be better to spit out an error and keep on
going if that's the case (I'm afraid I don't have hardware at hand to
test with right now).
-Olof
More information about the Linuxppc-dev
mailing list