* [PATCH net-next] netlink: compiling issue, need a dummy function sk_diag_put_rings_cfg when CONFIG_NETLINK_MMAP disabled
@ 2013-04-24 8:09 Chen Gang
2013-04-24 8:11 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: Chen Gang @ 2013-04-24 8:09 UTC (permalink / raw)
To: David Miller, kaber, xemul, avagin, netdev
When disable CONFIG_NETLINK_MMAP, need a dummy function for
sk_diag_put_rings_cfg, or will cause compiling issue.
Signed-off-by: Chen Gang <gang.chen@asianux.com>
---
net/netlink/diag.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/net/netlink/diag.c b/net/netlink/diag.c
index 4e4aa47..d0ab090 100644
--- a/net/netlink/diag.c
+++ b/net/netlink/diag.c
@@ -7,6 +7,8 @@
#include "af_netlink.h"
+#ifdef CONFIG_NETLINK_MMAP
+
static int sk_diag_put_ring(struct netlink_ring *ring, int nl_type,
struct sk_buff *nlskb)
{
@@ -35,6 +37,15 @@ static int sk_diag_put_rings_cfg(struct sock *sk, struct sk_buff *nlskb)
return ret;
}
+#else /* !CONFIG_NETLINK_MMAP */
+
+static int sk_diag_put_rings_cfg(struct sock *sk, struct sk_buff *nlskb)
+{
+ return 0;
+}
+
+#endif /* CONFIG_NETLINK_MMAP */
+
static int sk_diag_dump_groups(struct sock *sk, struct sk_buff *nlskb)
{
struct netlink_sock *nlk = nlk_sk(sk);
--
1.7.7.6
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] netlink: compiling issue, need a dummy function sk_diag_put_rings_cfg when CONFIG_NETLINK_MMAP disabled
2013-04-24 8:09 [PATCH net-next] netlink: compiling issue, need a dummy function sk_diag_put_rings_cfg when CONFIG_NETLINK_MMAP disabled Chen Gang
@ 2013-04-24 8:11 ` David Miller
2013-04-24 8:20 ` Chen Gang
0 siblings, 1 reply; 3+ messages in thread
From: David Miller @ 2013-04-24 8:11 UTC (permalink / raw)
To: gang.chen; +Cc: kaber, xemul, avagin, netdev
aFrom: Chen Gang <gang.chen@asianux.com>
Date: Wed, 24 Apr 2013 16:09:43 +0800
>
> When disable CONFIG_NETLINK_MMAP, need a dummy function for
> sk_diag_put_rings_cfg, or will cause compiling issue.
>
> Signed-off-by: Chen Gang <gang.chen@asianux.com>
This was fixed more than 12 hours ago.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next] netlink: compiling issue, need a dummy function sk_diag_put_rings_cfg when CONFIG_NETLINK_MMAP disabled
2013-04-24 8:11 ` David Miller
@ 2013-04-24 8:20 ` Chen Gang
0 siblings, 0 replies; 3+ messages in thread
From: Chen Gang @ 2013-04-24 8:20 UTC (permalink / raw)
To: David Miller; +Cc: kaber, xemul, avagin, netdev
On 2013年04月24日 16:11, David Miller wrote:
> aFrom: Chen Gang <gang.chen@asianux.com>
> Date: Wed, 24 Apr 2013 16:09:43 +0800
>
>> >
>> > When disable CONFIG_NETLINK_MMAP, need a dummy function for
>> > sk_diag_put_rings_cfg, or will cause compiling issue.
>> >
>> > Signed-off-by: Chen Gang <gang.chen@asianux.com>
> This was fixed more than 12 hours ago.
>
>
Ok, thanks.
--
Chen Gang
Asianux Corporation
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-04-24 8:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-24 8:09 [PATCH net-next] netlink: compiling issue, need a dummy function sk_diag_put_rings_cfg when CONFIG_NETLINK_MMAP disabled Chen Gang
2013-04-24 8:11 ` David Miller
2013-04-24 8:20 ` Chen Gang
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.