diff options
Diffstat (limited to 'net/netlink/diag.c')
-rw-r--r-- | net/netlink/diag.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/netlink/diag.c b/net/netlink/diag.c index 4e4aa471cd05..1af29624b92f 100644 --- a/net/netlink/diag.c +++ b/net/netlink/diag.c | |||
@@ -7,6 +7,7 @@ | |||
7 | 7 | ||
8 | #include "af_netlink.h" | 8 | #include "af_netlink.h" |
9 | 9 | ||
10 | #ifdef CONFIG_NETLINK_MMAP | ||
10 | static int sk_diag_put_ring(struct netlink_ring *ring, int nl_type, | 11 | static int sk_diag_put_ring(struct netlink_ring *ring, int nl_type, |
11 | struct sk_buff *nlskb) | 12 | struct sk_buff *nlskb) |
12 | { | 13 | { |
@@ -34,6 +35,12 @@ static int sk_diag_put_rings_cfg(struct sock *sk, struct sk_buff *nlskb) | |||
34 | 35 | ||
35 | return ret; | 36 | return ret; |
36 | } | 37 | } |
38 | #else | ||
39 | static int sk_diag_put_rings_cfg(struct sock *sk, struct sk_buff *nlskb) | ||
40 | { | ||
41 | return 0; | ||
42 | } | ||
43 | #endif | ||
37 | 44 | ||
38 | static int sk_diag_dump_groups(struct sock *sk, struct sk_buff *nlskb) | 45 | static int sk_diag_dump_groups(struct sock *sk, struct sk_buff *nlskb) |
39 | { | 46 | { |