summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/amd/init.c
diff options
context:
space:
mode:
authorVasant Hegde <vasant.hegde@amd.com>2022-03-01 14:26:24 +0530
committerJoerg Roedel <jroedel@suse.de>2022-03-08 12:19:14 +0100
commit3bf01426a574b1fe0ec21aabb7148aff777e623f (patch)
treecdf10c2118d7bb4547bc7c72a8999e5fde7fab1e /drivers/iommu/amd/init.c
parent434d2defa93b59b8e845b49bd6882cefd009f516 (diff)
downloadlinux-3bf01426a574b1fe0ec21aabb7148aff777e623f.tar.bz2
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>
Diffstat (limited to 'drivers/iommu/amd/init.c')
-rw-r--r--drivers/iommu/amd/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/amd/init.c b/drivers/iommu/amd/init.c
index f7e7d208063c..07d6dd302989 100644
--- a/drivers/iommu/amd/init.c
+++ b/drivers/iommu/amd/init.c
@@ -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
* 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);