]> err.no Git - linux-2.6/commitdiff
[PATCH] kobject: fix build error if CONFIG_SYSFS=n
authorJun'ichi Nomura <j-nomura@ce.jp.nec.com>
Wed, 15 Mar 2006 13:28:55 +0000 (08:28 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Mar 2006 21:42:57 +0000 (13:42 -0800)
Moving uevent_seqnum and uevent_helper to kobject_uevent.c
because they are used even if CONFIG_SYSFS=n
while kernel/ksysfs.c is built only if CONFIG_SYSFS=y,

Signed-off-by: Jun'ichi Nomura <j-nomura@ce.jp.nec.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
kernel/ksysfs.c
lib/kobject_uevent.c

index d5eeae0fa5bc5c6de327a7c0f583c4fdaca16b50..f2690ed7453068460f432a52dc97f685a950ec0a 100644 (file)
@@ -15,9 +15,6 @@
 #include <linux/module.h>
 #include <linux/init.h>
 
-u64 uevent_seqnum;
-char uevent_helper[UEVENT_HELPER_PATH_LEN] = "/sbin/hotplug";
-
 #define KERNEL_ATTR_RO(_name) \
 static struct subsys_attribute _name##_attr = __ATTR_RO(_name)
 
index 086a0c6e888e99aef43aeab96c40ddb56b6146a1..982226daf9398112185a5eb717c28d396fcb9341 100644 (file)
@@ -26,6 +26,8 @@
 #define NUM_ENVP       32      /* number of env pointers */
 
 #if defined(CONFIG_HOTPLUG) && defined(CONFIG_NET)
+u64 uevent_seqnum;
+char uevent_helper[UEVENT_HELPER_PATH_LEN] = "/sbin/hotplug";
 static DEFINE_SPINLOCK(sequence_lock);
 static struct sock *uevent_sock;