From: Joerg Roedel Date: Tue, 30 Jun 2020 12:46:11 +0000 (+0200) Subject: iommu/amd: Make amd_iommu_apply_ivrs_quirks() static inline X-Git-Tag: v5.8-rc6~37^2~2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=e7fc23838ebbdbb227c8d45fe02904d0d67a0540;p=linux-block.git 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 Signed-off-by: Joerg Roedel Link: https://lore.kernel.org/r/20200630124611.23153-1-joro@8bytes.org --- diff --git a/drivers/iommu/amd/amd_iommu.h b/drivers/iommu/amd/amd_iommu.h index f892992c8744..57309716fd18 100644 --- a/drivers/iommu/amd/amd_iommu.h +++ b/drivers/iommu/amd/amd_iommu.h @@ -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