[<prev] [next>] [day] [month] [year] [list]
Date: Sun, 10 Oct 2010 12:02:12 +0200 (CEST)
From: Thomas Gleixner <tglx@...utronix.de>
To: LKML <linux-kernel@...r.kernel.org>
cc: Yinghai Lu <yhlu.kernel@...il.com>,
"H. Peter Anvin" <hpa@...or.com>,
Suresh Siddha <suresh.b.siddha@...el.com>
Subject: [PATCH] pci: intr_remapping: Fix bogus CONFIG ifdef
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@...utronix.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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists