From: Li Zefan <lizf@cn.fujitsu.com>
To: David Miller <davem@davemloft.net>
Cc: vladislav.yasevich@hp.com, sri@us.ibm.com,
lksctp-developers@lists.sourceforge.net,
LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH] SCTP: fix compile warning building without CONFIG_IPV6
Date: Mon, 24 Mar 2008 14:11:20 +0800 [thread overview]
Message-ID: <47E74608.7080007@cn.fujitsu.com> (raw)
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@cn.fujitsu.com>
---
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
next reply other threads:[~2008-03-24 6:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-24 6:11 Li Zefan [this message]
2008-03-24 6:51 ` [PATCH] SCTP: fix compile warning building without CONFIG_IPV6 David Miller
2008-03-24 7:01 ` Li Zefan
2008-03-24 7:47 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47E74608.7080007@cn.fujitsu.com \
--to=lizf@cn.fujitsu.com \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=lksctp-developers@lists.sourceforge.net \
--cc=sri@us.ibm.com \
--cc=vladislav.yasevich@hp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.