Re: [PATCH] Driver Core patches for 2.6.10-rc1

From: Greg KH
Date: Fri Oct 22 2004 - 22:05:34 EST


ChangeSet 1.2022, 2004/10/22 14:30:22-07:00, akpm@xxxxxxxx

[PATCH] kobject_uevent warning fix

lib/kobject_uevent.c:39: warning: `action_to_string' defined but not used

Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <greg@xxxxxxxxx>


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 <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 @@
return NULL;
}
}
+#endif

#ifdef CONFIG_KOBJECT_UEVENT
static struct sock *uevent_sock;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/