Skip to content

Commit

Permalink
iommu/amd: Make amd_iommu_apply_ivrs_quirks() static inline
Browse files Browse the repository at this point in the history
At least the version in the header file to fix a compile warning about
the function being unused.

Reported-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Link: https://lore.kernel.org/r/20200630124611.23153-1-joro@8bytes.org
  • Loading branch information
Joerg Roedel committed Jun 30, 2020
1 parent c7451e4 commit e7fc238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/iommu/amd/amd_iommu.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit e7fc238

Please sign in to comment.