lib/kobject_uevent.c:39: warning: `action_to_string' defined but not used Signed-off-by: Andrew Morton --- 25-akpm/lib/kobject_uevent.c | 2 ++ 1 files changed, 2 insertions(+) diff -puN lib/kobject_uevent.c~kobject_uevent-warning-fix lib/kobject_uevent.c --- 25/lib/kobject_uevent.c~kobject_uevent-warning-fix 2004-10-18 21:45:40.076330600 -0700 +++ 25-akpm/lib/kobject_uevent.c 2004-10-18 21:47:24.375474720 -0700 @@ -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) { @@ -40,6 +41,7 @@ static char *action_to_string(enum kobje return NULL; } } +#endif #ifdef CONFIG_KOBJECT_UEVENT static struct sock *uevent_sock; _