diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-09 20:58:05 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-10 15:48:49 +0300 |
commit | 8afbb4273977f055db219a22daaafe64be10fb95 (patch) | |
tree | 1ec01576c24ba01205135b50ee2d83fc96247570 /drivers/base | |
parent | b7bfaa761d760e72a969d116517eaa12e404c262 (diff) | |
download | linux-8afbb4273977f055db219a22daaafe64be10fb95.tar.xz |
driver core: make bus_get_device_klist() static
No one calls this function outside of drivers/base/bus.c so make it
static so it does not need to be exported anymore.
Reviewed-by: Rafael J. Wysocki <rafael@kernel.org>
Link: https://lore.kernel.org/r/20230109175810.2965448-1-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base')
-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 4ec6dbab73be..4425f962bf51 100644 --- a/drivers/base/bus.c +++ b/drivers/base/bus.c @@ -897,11 +897,10 @@ struct kset *bus_get_kset(struct bus_type *bus) } EXPORT_SYMBOL_GPL(bus_get_kset); -struct klist *bus_get_device_klist(struct bus_type *bus) +static struct klist *bus_get_device_klist(struct bus_type *bus) { return &bus->p->klist_devices; } -EXPORT_SYMBOL_GPL(bus_get_device_klist); /* * Yes, this forcibly breaks the klist abstraction temporarily. It |