Skip to content

Commit 18b3af4

Browse files
geertujoergroedel
authored andcommitted
iommu: Fix IOMMU debugfs fallout
A change made in the final version of IOMMU debugfs support replaced the public function iommu_debugfs_new_driver_dir() by the public dentry iommu_debugfs_dir in <linux/iommu.h>, but forgot to update both the implementation in iommu-debugfs.c, and the patch description. Fix this by exporting iommu_debugfs_dir, and removing the reference to and implementation of iommu_debugfs_new_driver_dir(). Fixes: bad614b ("iommu: Enable debugfs exposure of IOMMU driver internals") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Gary R Hook <gary.hook@amd.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent a7055d5 commit 18b3af4

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

drivers/iommu/iommu-debugfs.c

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <linux/debugfs.h>
1313

1414
struct dentry *iommu_debugfs_dir;
15+
EXPORT_SYMBOL_GPL(iommu_debugfs_dir);
1516

1617
/**
1718
* iommu_debugfs_setup - create the top-level iommu directory in debugfs
@@ -23,9 +24,9 @@ struct dentry *iommu_debugfs_dir;
2324
* Emit a strong warning at boot time to indicate that this feature is
2425
* enabled.
2526
*
26-
* This function is called from iommu_init; drivers may then call
27-
* iommu_debugfs_new_driver_dir() to instantiate a vendor-specific
28-
* directory to be used to expose internal data.
27+
* This function is called from iommu_init; drivers may then use
28+
* iommu_debugfs_dir to instantiate a vendor-specific directory to be used
29+
* to expose internal data.
2930
*/
3031
void iommu_debugfs_setup(void)
3132
{
@@ -48,19 +49,3 @@ void iommu_debugfs_setup(void)
4849
pr_warn("*************************************************************\n");
4950
}
5051
}
51-
52-
/**
53-
* iommu_debugfs_new_driver_dir - create a vendor directory under debugfs/iommu
54-
* @vendor: name of the vendor-specific subdirectory to create
55-
*
56-
* This function is called by an IOMMU driver to create the top-level debugfs
57-
* directory for that driver.
58-
*
59-
* Return: upon success, a pointer to the dentry for the new directory.
60-
* NULL in case of failure.
61-
*/
62-
struct dentry *iommu_debugfs_new_driver_dir(const char *vendor)
63-
{
64-
return debugfs_create_dir(vendor, iommu_debugfs_dir);
65-
}
66-
EXPORT_SYMBOL_GPL(iommu_debugfs_new_driver_dir);

0 commit comments

Comments
 (0)