Skip to contentSkip to conversation

driver core: mark driver_allows_async_probing static

PATCH New Christoph Hellwig 1 participant 1 message Oct 30, 2022 Driver core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 driver core: mark driver_allows_async_probing static

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.

---
 drivers/base/base.h | 1 -
 drivers/base/dd.c   | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)
drivers/base/base.h +0 -1
index b902d1ecc247f..7d4803c03d3e6 100644
@@ -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);
drivers/base/dd.c +1 -1
index 3dda62503102f..4001e22617ab0 100644
@@ -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:
Signature · 1 line
2.30.2