Commit 1c1355b2 authored by Andrew Morton's avatar Andrew Morton Committed by Greg Kroah-Hartman

[PATCH] kobject_uevent warning fix

lib/kobject_uevent.c:39: warning: `action_to_string' defined but not used
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 28b5fd22
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
#include <linux/kobject.h> #include <linux/kobject.h>
#include <net/sock.h> #include <net/sock.h>
#if defined(CONFIG_KOBJECT_UEVENT) || defined(CONFIG_HOTPLUG)
static char *action_to_string(enum kobject_action action) static char *action_to_string(enum kobject_action action)
{ {
switch (action) { switch (action) {
...@@ -42,6 +43,7 @@ static char *action_to_string(enum kobject_action action) ...@@ -42,6 +43,7 @@ static char *action_to_string(enum kobject_action action)
return NULL; return NULL;
} }
} }
#endif
#ifdef CONFIG_KOBJECT_UEVENT #ifdef CONFIG_KOBJECT_UEVENT
static struct sock *uevent_sock; static struct sock *uevent_sock;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment