mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 02:00:54 +07:00
iommu/sun50i: Fix set-but-not-used variable warning
Fix the following warning the the SUN50I driver: drivers/iommu/sun50i-iommu.c: In function 'sun50i_iommu_irq': drivers/iommu/sun50i-iommu.c:890:14: warning: variable 'iova' set but not used [-Wunused-but-set-variable] 890 | phys_addr_t iova; | ^~~~ Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Joerg Roedel <jroedel@suse.de> Link: https://lore.kernel.org/r/20200904113906.3906-1-joro@8bytes.org Signed-off-by: Joerg Roedel <jroedel@suse.de>
This commit is contained in:
parent
f75aef392f
commit
03c7b78b0b
@ -881,7 +881,6 @@ static phys_addr_t sun50i_iommu_handle_perm_irq(struct sun50i_iommu *iommu)
|
|||||||
static irqreturn_t sun50i_iommu_irq(int irq, void *dev_id)
|
static irqreturn_t sun50i_iommu_irq(int irq, void *dev_id)
|
||||||
{
|
{
|
||||||
struct sun50i_iommu *iommu = dev_id;
|
struct sun50i_iommu *iommu = dev_id;
|
||||||
phys_addr_t iova;
|
|
||||||
u32 status;
|
u32 status;
|
||||||
|
|
||||||
spin_lock(&iommu->iommu_lock);
|
spin_lock(&iommu->iommu_lock);
|
||||||
@ -893,15 +892,15 @@ static irqreturn_t sun50i_iommu_irq(int irq, void *dev_id)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (status & IOMMU_INT_INVALID_L2PG)
|
if (status & IOMMU_INT_INVALID_L2PG)
|
||||||
iova = sun50i_iommu_handle_pt_irq(iommu,
|
sun50i_iommu_handle_pt_irq(iommu,
|
||||||
IOMMU_INT_ERR_ADDR_L2_REG,
|
IOMMU_INT_ERR_ADDR_L2_REG,
|
||||||
IOMMU_L2PG_INT_REG);
|
IOMMU_L2PG_INT_REG);
|
||||||
else if (status & IOMMU_INT_INVALID_L1PG)
|
else if (status & IOMMU_INT_INVALID_L1PG)
|
||||||
iova = sun50i_iommu_handle_pt_irq(iommu,
|
sun50i_iommu_handle_pt_irq(iommu,
|
||||||
IOMMU_INT_ERR_ADDR_L1_REG,
|
IOMMU_INT_ERR_ADDR_L1_REG,
|
||||||
IOMMU_L1PG_INT_REG);
|
IOMMU_L1PG_INT_REG);
|
||||||
else
|
else
|
||||||
iova = sun50i_iommu_handle_perm_irq(iommu);
|
sun50i_iommu_handle_perm_irq(iommu);
|
||||||
|
|
||||||
iommu_write(iommu, IOMMU_INT_CLR_REG, status);
|
iommu_write(iommu, IOMMU_INT_CLR_REG, status);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user