Skip to content

Commit 95b6235

Browse files
rmurphy-armjoergroedel
authored andcommitted
iommu: Make bus_iommu_probe() static
With the last external caller of bus_iommu_probe() now gone, make it internal as it really should be. Signed-off-by: Robin Murphy <[email protected]> Tested-by: H. Nikolaus Schaller <[email protected]> Reviewed-by: Kevin Hilman <[email protected]> Tested-by: Kevin Hilman <[email protected]> Tested-by: Beleswar Padhi <[email protected]> Link: https://lore.kernel.org/r/a7511a034a27259aff4e14d80a861d3c40fbff1e.1730136799.git.robin.murphy@arm.com Signed-off-by: Joerg Roedel <[email protected]>
1 parent c9b4a31 commit 95b6235

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/iommu/iommu.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ static const char * const iommu_group_resv_type_string[] = {
9090
#define IOMMU_CMD_LINE_DMA_API BIT(0)
9191
#define IOMMU_CMD_LINE_STRICT BIT(1)
9292

93+
static int bus_iommu_probe(const struct bus_type *bus);
9394
static int iommu_bus_notifier(struct notifier_block *nb,
9495
unsigned long action, void *data);
9596
static void iommu_release_device(struct device *dev);
@@ -1795,7 +1796,7 @@ static void iommu_group_do_probe_finalize(struct device *dev)
17951796
ops->probe_finalize(dev);
17961797
}
17971798

1798-
int bus_iommu_probe(const struct bus_type *bus)
1799+
static int bus_iommu_probe(const struct bus_type *bus)
17991800
{
18001801
struct iommu_group *group, *next;
18011802
LIST_HEAD(group_list);

include/linux/iommu.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -784,7 +784,6 @@ static inline void iommu_iotlb_gather_init(struct iommu_iotlb_gather *gather)
784784
};
785785
}
786786

787-
extern int bus_iommu_probe(const struct bus_type *bus);
788787
extern bool iommu_present(const struct bus_type *bus);
789788
extern bool device_iommu_capable(struct device *dev, enum iommu_cap cap);
790789
extern bool iommu_group_has_isolated_msi(struct iommu_group *group);

0 commit comments

Comments
 (0)