Skip to content

Commit f9e2f0e

Browse files
hegdevasantjoergroedel
authored andcommitted
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>
1 parent 6b5b586 commit f9e2f0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/iommu/amd/amd_iommu_types.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,8 @@ struct irq_remap_table {
461461
/* Interrupt remapping feature used? */
462462
extern bool amd_iommu_irq_remap;
463463

464+
extern const struct iommu_ops amd_iommu_ops;
465+
464466
/* IVRS indicates that pre-boot remapping was enabled */
465467
extern bool amdr_ivrs_remap_support;
466468

drivers/iommu/amd/init.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@
9595
* out of it.
9696
*/
9797

98-
extern const struct iommu_ops amd_iommu_ops;
99-
10098
/*
10199
* structure describing one IOMMU in the ACPI table. Typically followed by one
102100
* or more ivhd_entrys.

0 commit comments

Comments
 (0)