Skip to content

Commit 3bf0142

Browse files
hegdevasantjoergroedel
authored andcommitted
iommu/amd: Clean up function declarations
Remove unused declarations and add static keyword as needed. Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com> Signed-off-by: Vasant Hegde <vasant.hegde@amd.com> Link: https://lore.kernel.org/r/20220301085626.87680-4-vasant.hegde@amd.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent 434d2de commit 3bf0142

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

drivers/iommu/amd/amd_iommu.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
extern irqreturn_t amd_iommu_int_thread(int irq, void *data);
1515
extern irqreturn_t amd_iommu_int_handler(int irq, void *data);
1616
extern void amd_iommu_apply_erratum_63(u16 devid);
17-
extern void amd_iommu_reset_cmd_buffer(struct amd_iommu *iommu);
18-
extern int amd_iommu_init_devices(void);
19-
extern void amd_iommu_uninit_devices(void);
20-
extern void amd_iommu_init_notifier(void);
2117
extern int amd_iommu_init_api(void);
2218

2319
#ifdef CONFIG_AMD_IOMMU_DEBUGFS

drivers/iommu/amd/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ static int __init alloc_command_buffer(struct amd_iommu *iommu)
661661
* This function resets the command buffer if the IOMMU stopped fetching
662662
* commands from it.
663663
*/
664-
void amd_iommu_reset_cmd_buffer(struct amd_iommu *iommu)
664+
static void amd_iommu_reset_cmd_buffer(struct amd_iommu *iommu)
665665
{
666666
iommu_feature_disable(iommu, CONTROL_CMDBUF_EN);
667667

0 commit comments

Comments
 (0)