public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 2.6.12-rc4] Add EXPORT_SYMBOL for hotplug_path
@ 2005-05-19 16:43 Tom Rini
  2005-05-19 17:40 ` Arjan van de Ven
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Tom Rini @ 2005-05-19 16:43 UTC (permalink / raw)
  To: Andrew Morton, Kernel Mailing List

If CONFIG_INPUT is set as a module, it will not load as hotplug_path is
not a defined symbol.  Trivial fix is to EXPORT_SYMBOL hotplug_path.

Signed-off-by: Tom Rini <trini@kernel.crashing.org>

Index: lib/kobject_uevent.c
===================================================================
--- c7d7a187a2125518e655dfeadffd38156239ffc3/lib/kobject_uevent.c  (mode:100644)
+++ uncommitted/lib/kobject_uevent.c  (mode:100644)
@@ -21,6 +21,7 @@
 #include <linux/string.h>
 #include <linux/kobject_uevent.h>
 #include <linux/kobject.h>
+#include <linux/module.h>
 #include <net/sock.h>
 
 #define BUFFER_SIZE	1024	/* buffer for the hotplug env */
@@ -178,6 +179,7 @@
 
 #ifdef CONFIG_HOTPLUG
 char hotplug_path[HOTPLUG_PATH_LEN] = "/sbin/hotplug";
+EXPORT_SYMBOL(hotplug_path);
 u64 hotplug_seqnum;
 static DEFINE_SPINLOCK(sequence_lock);
 

-- 
Tom Rini
http://gate.crashing.org/~trini/

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2005-05-20 20:11 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-19 16:43 [PATCH 2.6.12-rc4] Add EXPORT_SYMBOL for hotplug_path Tom Rini
2005-05-19 17:40 ` Arjan van de Ven
2005-05-19 18:16   ` Tom Rini
2005-05-19 18:29     ` Dave Jones
2005-05-20  5:18 ` Greg KH
2005-05-20  5:18   ` Dmitry Torokhov
2005-05-20  5:37     ` Greg KH
2005-05-20  7:12 ` Kay Sievers
2005-05-20 17:18   ` Tom Rini
2005-05-20 17:56     ` Kay Sievers
2005-05-20 19:07       ` Dmitry Torokhov
2005-05-20 19:48         ` Kay Sievers
2005-05-20 20:11           ` Dmitry Torokhov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox