* [Patch net-next] sctp: fix a compile error in sctp.h
@ 2012-08-15 10:18 Cong Wang
2012-08-15 10:45 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: Cong Wang @ 2012-08-15 10:18 UTC (permalink / raw)
To: netdev; +Cc: David S. Miller, Eric W. Biederman, Cong Wang
I got the following compile error:
In file included from include/net/sctp/checksum.h:46:0,
from net/ipv4/netfilter/nf_nat_proto_sctp.c:14:
include/net/sctp/sctp.h: In function ‘sctp_dbg_objcnt_init’:
include/net/sctp/sctp.h:370:88: error: parameter name omitted
include/net/sctp/sctp.h: In function ‘sctp_dbg_objcnt_exit’:
include/net/sctp/sctp.h:371:88: error: parameter name omitted
which is caused by
commit 13d782f6b4fbbaf9d0380a9947deb45a9de46ae7
Author: Eric W. Biederman <ebiederm@xmission.com>
Date: Mon Aug 6 08:45:15 2012 +0000
sctp: Make the proc files per network namespace.
This patch could fix it.
Cc: David S. Miller <davem@davemloft.net>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: Cong Wang <amwang@redhat.com>
---
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h
index aaa8292..9c6414f 100644
--- a/include/net/sctp/sctp.h
+++ b/include/net/sctp/sctp.h
@@ -367,8 +367,8 @@ void sctp_dbg_objcnt_exit(struct net *);
#define SCTP_DBG_OBJCNT_INC(name)
#define SCTP_DBG_OBJCNT_DEC(name)
-static inline void sctp_dbg_objcnt_init(struct net *) { return; }
-static inline void sctp_dbg_objcnt_exit(struct net *) { return; }
+static inline void sctp_dbg_objcnt_init(struct net *net) { return; }
+static inline void sctp_dbg_objcnt_exit(struct net *net) { return; }
#endif /* CONFIG_SCTP_DBG_OBJCOUNT */
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [Patch net-next] sctp: fix a compile error in sctp.h
2012-08-15 10:18 [Patch net-next] sctp: fix a compile error in sctp.h Cong Wang
@ 2012-08-15 10:45 ` David Miller
2012-08-15 19:53 ` Eric W. Biederman
0 siblings, 1 reply; 3+ messages in thread
From: David Miller @ 2012-08-15 10:45 UTC (permalink / raw)
To: amwang; +Cc: netdev, ebiederm
From: Cong Wang <amwang@redhat.com>
Date: Wed, 15 Aug 2012 18:18:11 +0800
> I got the following compile error:
>
> In file included from include/net/sctp/checksum.h:46:0,
> from net/ipv4/netfilter/nf_nat_proto_sctp.c:14:
> include/net/sctp/sctp.h: In function ‘sctp_dbg_objcnt_init’:
> include/net/sctp/sctp.h:370:88: error: parameter name omitted
> include/net/sctp/sctp.h: In function ‘sctp_dbg_objcnt_exit’:
> include/net/sctp/sctp.h:371:88: error: parameter name omitted
>
> which is caused by
>
> commit 13d782f6b4fbbaf9d0380a9947deb45a9de46ae7
> Author: Eric W. Biederman <ebiederm@xmission.com>
> Date: Mon Aug 6 08:45:15 2012 +0000
>
> sctp: Make the proc files per network namespace.
>
> This patch could fix it.
>
> Cc: David S. Miller <davem@davemloft.net>
> Cc: "Eric W. Biederman" <ebiederm@xmission.com>
> Signed-off-by: Cong Wang <amwang@redhat.com>
Applied thanks.
I appended the SCTP debug objcnt procfs netns conversions by hand
since Eric didn't handle it in his commit.
Eric, please turn all relevant options both on and off when testing
the build of your patches. Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Patch net-next] sctp: fix a compile error in sctp.h
2012-08-15 10:45 ` David Miller
@ 2012-08-15 19:53 ` Eric W. Biederman
0 siblings, 0 replies; 3+ messages in thread
From: Eric W. Biederman @ 2012-08-15 19:53 UTC (permalink / raw)
To: David Miller; +Cc: amwang, netdev
David Miller <davem@davemloft.net> writes:
> From: Cong Wang <amwang@redhat.com>
> Date: Wed, 15 Aug 2012 18:18:11 +0800
>
>> I got the following compile error:
>>
>> In file included from include/net/sctp/checksum.h:46:0,
>> from net/ipv4/netfilter/nf_nat_proto_sctp.c:14:
>> include/net/sctp/sctp.h: In function ‘sctp_dbg_objcnt_init’:
>> include/net/sctp/sctp.h:370:88: error: parameter name omitted
>> include/net/sctp/sctp.h: In function ‘sctp_dbg_objcnt_exit’:
>> include/net/sctp/sctp.h:371:88: error: parameter name omitted
>>
>> which is caused by
>>
>> commit 13d782f6b4fbbaf9d0380a9947deb45a9de46ae7
>> Author: Eric W. Biederman <ebiederm@xmission.com>
>> Date: Mon Aug 6 08:45:15 2012 +0000
>>
>> sctp: Make the proc files per network namespace.
>>
>> This patch could fix it.
>>
>> Cc: David S. Miller <davem@davemloft.net>
>> Cc: "Eric W. Biederman" <ebiederm@xmission.com>
>> Signed-off-by: Cong Wang <amwang@redhat.com>
>
> Applied thanks.
>
> I appended the SCTP debug objcnt procfs netns conversions by hand
> since Eric didn't handle it in his commit.
>
> Eric, please turn all relevant options both on and off when testing
> the build of your patches. Thanks.
Grr. My apologies. It looks like that one slipped by me this time :(
Eric
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-08-15 19:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-15 10:18 [Patch net-next] sctp: fix a compile error in sctp.h Cong Wang
2012-08-15 10:45 ` David Miller
2012-08-15 19:53 ` Eric W. Biederman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).