Skip to contentSkip to conversation

iommu/amd: Remove unsued extern declaration amd_iommu_init_hardware()

PATCH Applied Yue Haibing 3 participants 3 messages Aug 2, 2023 – Aug 7, 2023 AMD IOMMU (AMD-Vi)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iommu/amd: Remove unsued extern declaration amd_iommu_init_hardware()

From: YueHaibing <[email protected]>

Commit 2c0ae1720c09 ("iommu/amd: Convert iommu initialization to state machine") left behind this.

---
 include/linux/amd-iommu.h | 1 -
 1 file changed, 1 deletion(-)
include/linux/amd-iommu.h +0 -1
index 953e6f12fa1c..99a5201d9e62 100644
@@ -32,7 +32,6 @@ struct task_struct;
 struct pci_dev;
 
 extern int amd_iommu_detect(void);
-extern int amd_iommu_init_hardware(void);
 
 /**
  * amd_iommu_init_device() - Init device for use with IOMMUv2 driver
Signature · 1 line
2.34.1
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 15 lines · Yue Haibing

From: YueHaibing <[email protected]>

Commit 2c0ae1720c09 ("iommu/amd: Convert iommu initialization to state machine") left behind this.

---
  include/linux/amd-iommu.h | 1 -
  1 file changed, 1 deletion(-)
include/linux/amd-iommu.h +0 -0
index 953e6f12fa1c..99a5201d9e62 100644

include/linux/amd-iommu.h struct task_struct; · line 37

Quoted 7 lines
include/linux/amd-iommu.h +0 -1
@@ -32,7 +32,6 @@ struct task_struct;
  struct pci_dev;
 
  extern int amd_iommu_detect(void);
-extern int amd_iommu_init_hardware(void);
 
  /**
   * amd_iommu_init_device() - Init device for use with IOMMUv2 driver

Thanks,
Suravee