aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-10-22 00:30:22 -0700
committerGreg Kroah-Hartman <greg@kroah.com>2004-10-22 00:30:22 -0700
commit1c1355b29e9bfb042ff146c5e6a8d75c420ea596 (patch)
tree1cb844cebe0283551919bf5b973581845342755d /lib
parent28b5fd2263de53d325c84b6b3c3a5ef55263c5aa (diff)
downloadhistory-1c1355b29e9bfb042ff146c5e6a8d75c420ea596.tar.gz
[PATCH] kobject_uevent warning fix
lib/kobject_uevent.c:39: warning: `action_to_string' defined but not used Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/kobject_uevent.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c
index 0afff157b6fbe8..f46936798faba2 100644
--- a/lib/kobject_uevent.c
+++ b/lib/kobject_uevent.c
@@ -23,6 +23,7 @@
#include <linux/kobject.h>
#include <net/sock.h>
+#if defined(CONFIG_KOBJECT_UEVENT) || defined(CONFIG_HOTPLUG)
static char *action_to_string(enum kobject_action action)
{
switch (action) {
@@ -42,6 +43,7 @@ static char *action_to_string(enum kobject_action action)
return NULL;
}
}
+#endif
#ifdef CONFIG_KOBJECT_UEVENT
static struct sock *uevent_sock;