Commit 3bf01426 authored by Vasant Hegde's avatar Vasant Hegde Committed by Joerg Roedel

iommu/amd: Clean up function declarations

Remove unused declarations and add static keyword as needed.
Signed-off-by: default avatarSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: default avatarVasant Hegde <vasant.hegde@amd.com>
Link: https://lore.kernel.org/r/20220301085626.87680-4-vasant.hegde@amd.comSigned-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 434d2def
...@@ -14,10 +14,6 @@ ...@@ -14,10 +14,6 @@
extern irqreturn_t amd_iommu_int_thread(int irq, void *data); extern irqreturn_t amd_iommu_int_thread(int irq, void *data);
extern irqreturn_t amd_iommu_int_handler(int irq, void *data); extern irqreturn_t amd_iommu_int_handler(int irq, void *data);
extern void amd_iommu_apply_erratum_63(u16 devid); extern void amd_iommu_apply_erratum_63(u16 devid);
extern void amd_iommu_reset_cmd_buffer(struct amd_iommu *iommu);
extern int amd_iommu_init_devices(void);
extern void amd_iommu_uninit_devices(void);
extern void amd_iommu_init_notifier(void);
extern int amd_iommu_init_api(void); extern int amd_iommu_init_api(void);
#ifdef CONFIG_AMD_IOMMU_DEBUGFS #ifdef CONFIG_AMD_IOMMU_DEBUGFS
......
...@@ -661,7 +661,7 @@ static int __init alloc_command_buffer(struct amd_iommu *iommu) ...@@ -661,7 +661,7 @@ static int __init alloc_command_buffer(struct amd_iommu *iommu)
* This function resets the command buffer if the IOMMU stopped fetching * This function resets the command buffer if the IOMMU stopped fetching
* commands from it. * commands from it.
*/ */
void amd_iommu_reset_cmd_buffer(struct amd_iommu *iommu) static void amd_iommu_reset_cmd_buffer(struct amd_iommu *iommu)
{ {
iommu_feature_disable(iommu, CONTROL_CMDBUF_EN); iommu_feature_disable(iommu, CONTROL_CMDBUF_EN);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment