* [PATCH] SCTP: fix compile warning building without CONFIG_IPV6
@ 2008-03-24 6:11 Li Zefan
2008-03-24 6:51 ` David Miller
0 siblings, 1 reply; 4+ messages in thread
From: Li Zefan @ 2008-03-24 6:11 UTC (permalink / raw)
To: David Miller; +Cc: vladislav.yasevich, sri, lksctp-developers, LKML
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
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] SCTP: fix compile warning building without CONFIG_IPV6
2008-03-24 6:11 [PATCH] SCTP: fix compile warning building without CONFIG_IPV6 Li Zefan
@ 2008-03-24 6:51 ` David Miller
2008-03-24 7:01 ` Li Zefan
0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2008-03-24 6:51 UTC (permalink / raw)
To: lizf; +Cc: vladislav.yasevich, sri, lksctp-developers, linux-kernel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: Text/Plain; charset=utf-8, Size: 524 bytes --]
From: Li Zefan <lizf@cn.fujitsu.com>
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 <lizf@cn.fujitsu.com>
Fixed in net-2.6 for several days already.
ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þG«éÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á¶iOæ¬z·vØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?I¥
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] SCTP: fix compile warning building without CONFIG_IPV6
2008-03-24 6:51 ` David Miller
@ 2008-03-24 7:01 ` Li Zefan
2008-03-24 7:47 ` David Miller
0 siblings, 1 reply; 4+ messages in thread
From: Li Zefan @ 2008-03-24 7:01 UTC (permalink / raw)
To: David Miller; +Cc: vladislav.yasevich, sri, lksctp-developers, linux-kernel
David Miller wrote:
> From: Li Zefan <lizf@cn.fujitsu.com>
> 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 <lizf@cn.fujitsu.com>
>
> 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..
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] SCTP: fix compile warning building without CONFIG_IPV6
2008-03-24 7:01 ` Li Zefan
@ 2008-03-24 7:47 ` David Miller
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2008-03-24 7:47 UTC (permalink / raw)
To: lizf; +Cc: vladislav.yasevich, sri, lksctp-developers, linux-kernel
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: Text/Plain; charset=utf-8, Size: 2204 bytes --]
From: Li Zefan <lizf@cn.fujitsu.com>
Date: Mon, 24 Mar 2008 15:01:06 +0800
> David Miller wrote:
> > From: Li Zefan <lizf@cn.fujitsu.com>
> > 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 <lizf@cn.fujitsu.com>
> >
> > 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.
The net-2.6 tree, not net-2.6.26, holds bug fixes and the change in
question was checked in on Friday.
commit 1233823b0847190976d69a86d7bb1287992ba2c7
Author: David S. Miller <davem@davemloft.net>
Date: Fri Mar 21 15:40:47 2008 -0700
[SCTP]: Fix build warnings with IPV6 disabled.
Introduced by 270637abff0cdf848b910b9f96ad342e1da61c66
("[SCTP]: Fix a race between module load and protosw access")
Reported by Gabriel C:
In file included from net/sctp/sm_statetable.c:50:
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
In file included from net/sctp/sm_statefuns.c:62:
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
...
Signed-off-by: David S. Miller <davem@davemloft.net>
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; }
ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þG«éÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á¶iOæ¬z·vØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?I¥
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-03-24 7:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-24 6:11 [PATCH] SCTP: fix compile warning building without CONFIG_IPV6 Li Zefan
2008-03-24 6:51 ` David Miller
2008-03-24 7:01 ` Li Zefan
2008-03-24 7:47 ` David Miller
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.