Skip to contentSkip to conversation

driver core: Make driver_deferred_probe_timeout a static variable

PATCH RESEND New Javier Martinez Canillas 1 participant 1 message Dec 27, 2022 Driver core

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 driver core: Make driver_deferred_probe_timeout a static variable

It is not used outside of its compilation unit, so there's no need to export this variable.

---

 drivers/base/dd.c             | 6 ++----
 include/linux/device/driver.h | 1 -
 2 files changed, 2 insertions(+), 5 deletions(-)
drivers/base/dd.c +2 -4
index e9b2f9c25efe..69daf9d414eb 100644
@@ -257,13 +257,11 @@ static int deferred_devs_show(struct seq_file *s, void *data)
 DEFINE_SHOW_ATTRIBUTE(deferred_devs);
 
 #ifdef CONFIG_MODULES
-int driver_deferred_probe_timeout = 10;
+static int driver_deferred_probe_timeout = 10;
 #else
-int driver_deferred_probe_timeout;
+static int driver_deferred_probe_timeout;
 #endif
 
-EXPORT_SYMBOL_GPL(driver_deferred_probe_timeout);
-
 static int __init deferred_probe_timeout_setup(char *str)
 {
 	int timeout;
include/linux/device/driver.h +0 -1
index 2114d65b862f..50d0a416a5e7 100644
@@ -240,7 +240,6 @@ driver_find_device_by_acpi_dev(struct device_driver *drv, const void *adev)
 }
 #endif
 
-extern int driver_deferred_probe_timeout;
 void driver_deferred_probe_add(struct device *dev);
 int driver_deferred_probe_check_state(struct device *dev);
 void driver_init(void);
Signature · 1 line
2.38.1