driver core: mark driver_allows_async_probing static
authorChristoph Hellwig <hch@lst.de>
Sun, 30 Oct 2022 09:22:55 +0000 (10:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2022 17:31:04 +0000 (18:31 +0100)
driver_allows_async_probing is only used in drivers/base/dd.c, so mark
it static and remove the declaration in drivers/base/base.h.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20221030092255.872280-1-hch@lst.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/base.h
drivers/base/dd.c

index b902d1ecc247f142d33150ad129e27c0565fa316..7d4803c03d3e61ea950e3b896ab18308c4f32fa4 100644 (file)
@@ -146,7 +146,6 @@ static inline int driver_match_device(struct device_driver *drv,
 {
        return drv->bus->match ? drv->bus->match(dev, drv) : 1;
 }
-extern bool driver_allows_async_probing(struct device_driver *drv);
 
 extern int driver_add_groups(struct device_driver *drv,
                             const struct attribute_group **groups);
index 3dda62503102f9ee77637d396031c5b133482b6f..4001e22617ab0667653004f2a079d75d52754f5f 100644 (file)
@@ -843,7 +843,7 @@ static int __init save_async_options(char *buf)
 }
 __setup("driver_async_probe=", save_async_options);
 
-bool driver_allows_async_probing(struct device_driver *drv)
+static bool driver_allows_async_probing(struct device_driver *drv)
 {
        switch (drv->probe_type) {
        case PROBE_PREFER_ASYNCHRONOUS: