ChangeSet 1.2022, 2004/10/22 14:30:22-07:00, akpm@osdl.org [PATCH] kobject_uevent warning fix lib/kobject_uevent.c:39: warning: `action_to_string' defined but not used Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman lib/kobject_uevent.c | 2 ++ 1 files changed, 2 insertions(+) diff -Nru a/lib/kobject_uevent.c b/lib/kobject_uevent.c --- a/lib/kobject_uevent.c 2004-10-22 15:59:42 -07:00 +++ b/lib/kobject_uevent.c 2004-10-22 15:59:42 -07:00 @@ -23,6 +23,7 @@ #include #include +#if defined(CONFIG_KOBJECT_UEVENT) || defined(CONFIG_HOTPLUG) static char *action_to_string(enum kobject_action action) { switch (action) { @@ -42,6 +43,7 @@ return NULL; } } +#endif #ifdef CONFIG_KOBJECT_UEVENT static struct sock *uevent_sock;