lkml.org 
[lkml]   [2006]   [Dec]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    Subjectkobject.h with HOTPLUG=n
    In 2.6.20-rc1-mm1, with HOTPLUG=n, 2 linux/kobject.h inline functions
    need to return <int>. Currently this causes 962 warnings like this:

    include/linux/kobject.h: In function 'kobject_uevent':
    include/linux/kobject.h:277: warning: no return statement in function returning non-void
    include/linux/kobject.h: In function 'kobject_uevent_env':
    include/linux/kobject.h:281: warning: no return statement in function returning non-void

    Should these functions return 0 or some error code?

    static inline int kobject_uevent(struct kobject *kobj, enum kobject_action action) { }
    static inline int kobject_uevent_env(struct kobject *kobj,
    enum kobject_action action,
    char *envp[])
    { }

    --
    ~Randy
    -
    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: 2006-12-18 18:51    [W:0.018 / U:148.740 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site