Messages in this thread Patch in this message | | | Subject | Re: [PATCH] Driver Core patches for 2.6.10-rc1 | Date | Fri, 22 Oct 2004 16:09:32 -0700 | From | Greg KH <> |
| |
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 <akpm@osdl.org> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |