Re: [PATCH] Remove inclusion of <linux/irq.h> from pci/quirks.c

From: Greg KH
Date: Thu Oct 28 2004 - 16:38:13 EST


On Wed, Oct 20, 2004 at 09:57:50PM -0700, Andrew Morton wrote:
> Deepak Saxena <dsaxena@xxxxxxxxxxx> wrote:
> >
> > <linux/irq.h> states:
> >
> > /*
> > * Please do not include this file in generic code. There is currently
> > * no requirement for any architecture to implement anything held
> > * within this file.
> > *
> > * Thanks. --rmk
> > */
> >
> > The latest update into pci/quirks.c did not follow this and breaks
> > building on ARM.
>
> But it does break building on x86, which might prove a tad unpopular.
>
> That x86 code shouldn't be in the generic PCI code at all, I guess. This
> patch move it into io_apic.c and appears to build OK. I'll play with it a
> bit more.
>
> Also, it worries me that quirk_intel_irqbalance() is marked __devinit and
> calls irqbalance_disable(), which is marked __init. I guess a fix for that
> would be to mark quirk_intel_irqbalance() as __init, since it's unlikely to
> be called after free_initmem(). Does Greg agree?

I do agree. But I think the intel people are mucking around in this
area too and hopefully they'll fix it all up soon...

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/