lkml.org 
[lkml]   [2004]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    SubjectRe: [PATCH] Driver Core patches for 2.6.10-rc1
    Date
    From
    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/

    \
     
     \ /
      Last update: 2005-03-22 14:07    [W:0.031 / U:1.872 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site