[PATCH] SCTP: fix compile warning building without CONFIG_IPV6 - Kernel

This is a discussion on [PATCH] SCTP: fix compile warning building without CONFIG_IPV6 - Kernel ; include/net/sctp/sctp.h: In function ‘sctp_v6_pf_init’: include/net/sctp/sctp.h:392: warning: 'return' with a value, in function returning void This warning repeats several times. Signed-off-by: Li Zefan --- include/net/sctp/sctp.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h index 57ed3e3..ea80673 ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: [PATCH] SCTP: fix compile warning building without CONFIG_IPV6

  1. [PATCH] SCTP: fix compile warning building without CONFIG_IPV6

    include/net/sctp/sctp.h: In function ‘sctp_v6_pf_init’:
    include/net/sctp/sctp.h:392: warning: 'return' with a value, in function returning void

    This warning repeats several times.

    Signed-off-by: Li Zefan
    ---
    include/net/sctp/sctp.h | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h
    index 57ed3e3..ea80673 100644
    --- a/include/net/sctp/sctp.h
    +++ b/include/net/sctp/sctp.h
    @@ -389,7 +389,7 @@ void sctp_v6_del_protocol(void);

    #else /* #ifdef defined(CONFIG_IPV6) */

    -static inline void sctp_v6_pf_init(void) { return 0; }
    +static inline void sctp_v6_pf_init(void) { return; }
    static inline void sctp_v6_pf_exit(void) { return; }
    static inline int sctp_v6_protosw_init(void) { return 0; }
    static inline void sctp_v6_protosw_exit(void) { return; }
    --
    1.5.4.rc3
    --
    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/

  2. Re: [PATCH] SCTP: fix compile warning building without CONFIG_IPV6

    From: Li Zefan
    Date: Mon, 24 Mar 2008 14:11:20 +0800


    > include/net/sctp/sctp.h: In function ‘sctp_v6_pf_init’:
    > include/net/sctp/sctp.h:392: warning: 'return' with a value, in function returning void
    >
    > This warning repeats several times.
    >
    > Signed-off-by: Li Zefan


    Fixed in net-2.6 for several days already.
    NrybXǧv^)޺{.n+{zX }*z&j:+vzZ++zfh~*izw?*&)ߢf^jǫym@Aa 0hi

  3. Re: [PATCH] SCTP: fix compile warning building without CONFIG_IPV6

    David Miller wrote:
    > From: Li Zefan
    > Date: Mon, 24 Mar 2008 14:11:20 +0800
    >
    >> include/net/sctp/sctp.h: In function ‘sctp_v6_pf_init’:
    >> include/net/sctp/sctp.h:392: warning: 'return' with a value, in function returning void
    >>
    >> This warning repeats several times.
    >>
    >> Signed-off-by: Li Zefan

    >
    > Fixed in net-2.6 for several days already.


    I looked into the git-log of net-2.6-26 and didn't find the fix.
    So I posted this patch..
    --
    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/

+ Reply to Thread