mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] pci: intr_remapping: Fix bogus CONFIG ifdef
@ 2010-10-10 10:02 Thomas Gleixner
  0 siblings, 0 replies; only message in thread
From: Thomas Gleixner @ 2010-10-10 10:02 UTC (permalink / raw)
  To: LKML; +Cc: Yinghai Lu, H. Peter Anvin, Suresh Siddha

The interrupt remapping code selects the dynamic allocation of the
irq_2_iommu structure depending on CONFIG_GENERIC_HARDIRQS. Introduced
by commit d7e51e668 (sparseirq: make some func to be used with genirq)

The correct config switch is CONFIG_SPARSE_IRQ.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
diff --git a/drivers/pci/intr_remapping.c b/drivers/pci/intr_remapping.c
index fd1d286..af63cc2 100644
--- a/drivers/pci/intr_remapping.c
+++ b/drivers/pci/intr_remapping.c
@@ -53,7 +53,7 @@ struct irq_2_iommu {
 	u8  irte_mask;
 };
 
-#ifdef CONFIG_GENERIC_HARDIRQS
+#ifdef CONFIG_SPARSE_IRQ
 static struct irq_2_iommu *get_one_free_irq_2_iommu(int node)
 {
 	struct irq_2_iommu *iommu;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-10-10 10:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-10 10:02 [PATCH] pci: intr_remapping: Fix bogus CONFIG ifdef Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®