summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/amd_iommu_v2.c
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2012-07-06 13:28:37 +0200
committerJoerg Roedel <joerg.roedel@amd.com>2012-07-17 12:14:55 +0200
commit98f1ad258254d89ffb550a36d59caf9127a9d53f (patch)
tree4d4bd90b5e052e9f444ce84ec3648397fcb56ec7 /drivers/iommu/amd_iommu_v2.c
parent84a1caf1453c3d44050bd22db958af4a7f99315c (diff)
downloadtalos-obmc-linux-98f1ad258254d89ffb550a36d59caf9127a9d53f.tar.gz
talos-obmc-linux-98f1ad258254d89ffb550a36d59caf9127a9d53f.zip
iommu/amd: Fix sparse warnings
A few sparse warnings fire in drivers/iommu/amd_iommu_init.c. Fix most of them with this patch. Also fix the sparse warnings in drivers/iommu/irq_remapping.c while at it. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'drivers/iommu/amd_iommu_v2.c')
-rw-r--r--drivers/iommu/amd_iommu_v2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/amd_iommu_v2.c b/drivers/iommu/amd_iommu_v2.c
index 036fe9bf157e..77c28b721741 100644
--- a/drivers/iommu/amd_iommu_v2.c
+++ b/drivers/iommu/amd_iommu_v2.c
@@ -81,7 +81,7 @@ struct fault {
u16 flags;
};
-struct device_state **state_table;
+static struct device_state **state_table;
static spinlock_t state_lock;
/* List and lock for all pasid_states */
OpenPOWER on IntegriCloud