diff options
author | Vasant Hegde <vasant.hegde@amd.com> | 2022-09-12 06:32:48 +0000 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2022-09-26 13:26:40 +0200 |
commit | f9e2f0e8357658c448fd5397cc959da3aae4435d (patch) | |
tree | bb2908932307db6c3badc766b44fbde9bbdaf43a | |
parent | 6b5b58626ef90ef45513c78bfc84540ff954431c (diff) |
iommu/amd: Fix sparse warning
CHECK drivers/iommu/amd/iommu.c
drivers/iommu/amd/iommu.c:73:24: warning: symbol 'amd_iommu_ops' was not declared. Should it be static?
Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Link: https://lore.kernel.org/r/20220912063248.7909-6-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
-rw-r--r-- | drivers/iommu/amd/amd_iommu_types.h | 2 | ||||
-rw-r--r-- | drivers/iommu/amd/init.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/amd/amd_iommu_types.h b/drivers/iommu/amd/amd_iommu_types.h index 1beed57fc35d..1d0a70c85333 100644 --- a/drivers/iommu/amd/amd_iommu_types.h +++ b/drivers/iommu/amd/amd_iommu_types.h @@ -461,6 +461,8 @@ struct irq_remap_table { /* Interrupt remapping feature used? */ extern bool amd_iommu_irq_remap; +extern const struct iommu_ops amd_iommu_ops; + /* IVRS indicates that pre-boot remapping was enabled */ extern bool amdr_ivrs_remap_support; diff --git a/drivers/iommu/amd/init.c b/drivers/iommu/amd/init.c index 688cf8387b0b..a515e837adf1 100644 --- a/drivers/iommu/amd/init.c +++ b/drivers/iommu/amd/init.c @@ -95,8 +95,6 @@ * out of it. */ -extern const struct iommu_ops amd_iommu_ops; - /* * structure describing one IOMMU in the ACPI table. Typically followed by one * or more ivhd_entrys. |