]> Git Repo - linux.git/commitdiff
iommu/amd: Fix sparse warning
authorVasant Hegde <[email protected]>
Mon, 12 Sep 2022 06:32:48 +0000 (06:32 +0000)
committerJoerg Roedel <[email protected]>
Mon, 26 Sep 2022 11:26:40 +0000 (13:26 +0200)
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
drivers/iommu/amd/amd_iommu_types.h
drivers/iommu/amd/init.c

index 1beed57fc35dc50e87b863824b831a8d726c237d..1d0a70c85333aa6831c05fc797e5b6ea15cfe111 100644 (file)
@@ -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;
 
index 688cf8387b0bd0bd9616cca4bf5269ed85850f32..a515e837adf1df242c2fd2bed3738b2c3ae4f728 100644 (file)
@@ -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.
This page took 0.052544 seconds and 4 git commands to generate.