summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorGao Shiyuan <gaoshiyuan@baidu.com>2025-01-04 00:58:08 +0800
committerJoerg Roedel <jroedel@suse.de>2025-01-06 12:42:00 +0100
commit5bb494d5cbb9a3403ba8b1c8bc145b42fc119078 (patch)
treed6fc3070a53015d6cb9062780dd3c475fde2cc95 /include/linux
parentb0988acc94c021d8d428c9496649a1b4e6203011 (diff)
iommu/amd: remove return value of amd_iommu_detect
The return value of amd_iommu_detect is not used, so remove it and is consistent with other iommu detect functions. Signed-off-by: Gao Shiyuan <gaoshiyuan@baidu.com> Reviewed-by: Vasant Hegde <vasant.hegde@amd.com> Link: https://lore.kernel.org/r/20250103165808.80939-1-gaoshiyuan@baidu.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/amd-iommu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/amd-iommu.h b/include/linux/amd-iommu.h
index 2b90c48a6a87..062fbd4c9b77 100644
--- a/include/linux/amd-iommu.h
+++ b/include/linux/amd-iommu.h
@@ -31,11 +31,11 @@ struct amd_iommu_pi_data {
struct task_struct;
struct pci_dev;
-extern int amd_iommu_detect(void);
+extern void amd_iommu_detect(void);
#else /* CONFIG_AMD_IOMMU */
-static inline int amd_iommu_detect(void) { return -ENODEV; }
+static inline void amd_iommu_detect(void) { }
#endif /* CONFIG_AMD_IOMMU */