diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-09 18:58:08 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-10 13:49:02 +0100 |
commit | 38cdadefa2feecc9e7aa5f67bc4aea5b9a8ca59f (patch) | |
tree | 5747ce37bc57c13263046d429ddc65624b07ab3e /drivers/base/bus.c | |
parent | 2e45fc5502af9826617a96fe63aee055002cac97 (diff) | |
download | lwn-38cdadefa2feecc9e7aa5f67bc4aea5b9a8ca59f.tar.gz lwn-38cdadefa2feecc9e7aa5f67bc4aea5b9a8ca59f.zip |
driver core: make subsys_dev_iter_next() static
The function subsys_dev_iter_next() is only used in drivers/base/bus.c
so make it static to that file and remove the global export.
Reviewed-by: Rafael J. Wysocki <rafael@kernel.org>
Link: https://lore.kernel.org/r/20230109175810.2965448-4-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/bus.c')
-rw-r--r-- | drivers/base/bus.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/base/bus.c b/drivers/base/bus.c index f781124fdf31..f0aacb3b1bc6 100644 --- a/drivers/base/bus.c +++ b/drivers/base/bus.c @@ -946,7 +946,7 @@ static void subsys_dev_iter_init(struct subsys_dev_iter *iter, struct bus_type * * free to do whatever it wants to do with the device including * calling back into subsys code. */ -struct device *subsys_dev_iter_next(struct subsys_dev_iter *iter) +static struct device *subsys_dev_iter_next(struct subsys_dev_iter *iter) { struct klist_node *knode; struct device *dev; @@ -960,7 +960,6 @@ struct device *subsys_dev_iter_next(struct subsys_dev_iter *iter) return dev; } } -EXPORT_SYMBOL_GPL(subsys_dev_iter_next); /** * subsys_dev_iter_exit - finish iteration |