[v5 3/9] iommu, x86: Abstract modify_irte() to accept two format of irte

From: Feng Wu
Date: Wed May 20 2015 - 01:26:52 EST


After introducing VT-d posted-interrupts, we have two format
of IRTE: remapped and posted. This patch make modify_irte()
suitable for both of them.

Signed-off-by: Feng Wu <feng.wu@xxxxxxxxx>
---
drivers/iommu/intel_irq_remapping.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/iommu/intel_irq_remapping.c b/drivers/iommu/intel_irq_remapping.c
index 8fad71c..1575b9e 100644
--- a/drivers/iommu/intel_irq_remapping.c
+++ b/drivers/iommu/intel_irq_remapping.c
@@ -122,11 +122,11 @@ static int qi_flush_iec(struct intel_iommu *iommu, int index, int mask)
}

static int modify_irte(struct irq_2_iommu *irq_iommu,
- struct irte *irte_modified)
+ void *data)
{
struct intel_iommu *iommu;
unsigned long flags;
- struct irte *irte;
+ struct irte *irte, *irte_modified = (struct irte *)data;
int rc, index;

if (!irq_iommu)
--
2.1.0

--
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/