From f03416cc7df1c5b0734cfea6b1b99a2b8328e009 Mon Sep 17 00:00:00 2001 From: Chris Goldsworthy Date: Sun, 6 Nov 2022 18:44:43 -0800 Subject: [PATCH] arm-smmu: Fix compilation issue in CB interrupt selftest The IRQ array for struct arm_smmu_device no longer includes the global interrupts, i.e. it only tracks CB interrupts, such that num_global_irqs is unneeded and no longer exists. Remove a reference to it in the interrupt selftest when indexing the IRQ array. Change-Id: I838ab51cf9c41cbc1778918b2c52ffc7b515dde4 Signed-off-by: Chris Goldsworthy --- drivers/iommu/arm/arm-smmu/arm-smmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu.c b/drivers/iommu/arm/arm-smmu/arm-smmu.c index c7e3ee2c67b7..36bec94c815b 100644 --- a/drivers/iommu/arm/arm-smmu/arm-smmu.c +++ b/drivers/iommu/arm/arm-smmu/arm-smmu.c @@ -221,7 +221,7 @@ static void arm_smmu_interrupt_selftest(struct arm_smmu_device *smmu) u32 reg_orig; int irq_cnt; - irq = smmu->irqs[smmu->num_global_irqs + cb]; + irq = smmu->irqs[cb]; cb_data->cbndx = cb; ret = request_threaded_irq(irq, NULL, arm_smmu_cf_selftest,