History

netlink: Fix build with mmap disabled.

net/netlink/diag.c: In function 'sk_diag_put_rings_cfg': net/netlink/diag.c:28:17: error: 'struct netlink_sock' has no member named 'pg_vec_lock' net/netlink/diag.c:29:29: error: 'struct netlink_sock' has no member named 'rx_ring' net/netlink/diag.c:31:30: error: 'struct netlink_sock' has no member named 'tx_ring' net/netlink/diag.c:33:19: error: 'struct netlink_sock' has no member named 'pg_vec_lock'

David S. Miller committed 13 years ago

Commit 3dec2241 parent c0020901 file · +7 −0Browse files

Unified · Split

net/netlink/diag.c+7−0
@@ -7,6 +7,7 @@ · 6 unmodified lines
77
88 #include "af_netlink.h"
99
10+#ifdef CONFIG_NETLINK_MMAP
1011 static int sk_diag_put_ring(struct netlink_ring *ring, int nl_type,
1112 struct sk_buff *nlskb)
1213 {
@@ -34,6 +35,12 @@ static int sk_diag_put_rings_cfg(struct sock *sk, struct sk_buff *nlskb) · 21 unmodified lines
3435
3536 return ret;
3637 }
38+#else
39+static int sk_diag_put_rings_cfg(struct sock *sk, struct sk_buff *nlskb)
40+{
41+ return 0;
42+}
43+#endif
3744
3845 static int sk_diag_dump_groups(struct sock *sk, struct sk_buff *nlskb)
3946 {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t