summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <greg@kroah.com>2004-09-05 04:59:19 +0200
committerGreg Kroah-Hartman <greg@kroah.com>2004-09-05 04:59:19 +0200
commit988d7f56c2c572b432719bcafa9acffbc39f9aec (patch)
treef2d817bcf8834bf8502bafd943e7e92c587cf56f /lib
parentf4ecc95c96a42a33b74caffc1c559055aaf9bb72 (diff)
kobject: fix build error if CONFIG_HOTPLUG is not enabled.
Thanks to Kay Sievers for pointing this out. Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/kobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kobject.c b/lib/kobject.c
index d7b237ee347a..83ce570b7bce 100644
--- a/lib/kobject.c
+++ b/lib/kobject.c
@@ -118,11 +118,11 @@ char * kobject_get_path(struct kset *kset, struct kobject *kobj, int gfp_mask)
return path;
}
+unsigned long hotplug_seqnum;
#ifdef CONFIG_HOTPLUG
#define BUFFER_SIZE 1024 /* should be enough memory for the env */
#define NUM_ENVP 32 /* number of env pointers */
-unsigned long hotplug_seqnum;
static spinlock_t sequence_lock = SPIN_LOCK_UNLOCKED;
static void kset_hotplug(const char *action, struct kset *kset,