Skip to contentSkip to conversation

iommu/amd: Make amd_iommu_apply_ivrs_quirks() static inline

PATCH New Joerg Roedel 1 participant 1 message Jun 30, 2020

Subsystems (2)
lore
Share & tools
lore

Joerg Roedel

author maintainer
#0 lore raw

PATCH 1/1 iommu/amd: Make amd_iommu_apply_ivrs_quirks() static inline

From: Joerg Roedel <[email protected]>

At least the version in the header file to fix a compile warning about the function being unused.

---
 drivers/iommu/amd/amd_iommu.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/amd/amd_iommu.h +1 -1
index f892992c8744..57309716fd18 100644
@@ -102,7 +102,7 @@ extern int __init add_special_device(u8 type, u8 id, u16 *devid,
 #ifdef CONFIG_DMI
 void amd_iommu_apply_ivrs_quirks(void);
 #else
-static void amd_iommu_apply_ivrs_quirks(void) { }
+static inline void amd_iommu_apply_ivrs_quirks(void) { }
 #endif
 
 #endif
Signature · 1 line
2.27.0