[PATCH] SCTP: fix compile warning building without CONFIG_IPV6

From: Li Zefan
Date: Mon Mar 24 2008 - 02:13:37 EST


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 <lizf@xxxxxxxxxxxxxx>
---
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/