Skip to content

Commit e7fc238

Browse files
committed
iommu/amd: Make amd_iommu_apply_ivrs_quirks() static inline
At least the version in the header file to fix a compile warning about the function being unused. Reported-by: Borislav Petkov <[email protected]> Signed-off-by: Joerg Roedel <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent c7451e4 commit e7fc238

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/amd/amd_iommu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ extern int __init add_special_device(u8 type, u8 id, u16 *devid,
102102
#ifdef CONFIG_DMI
103103
void amd_iommu_apply_ivrs_quirks(void);
104104
#else
105-
static void amd_iommu_apply_ivrs_quirks(void) { }
105+
static inline void amd_iommu_apply_ivrs_quirks(void) { }
106106
#endif
107107

108108
#endif

0 commit comments

Comments
 (0)