aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorYafang Shao <laoar.shao@gmail.com>2019-01-17 18:03:14 +0800
committerDavid S. Miller <davem@davemloft.net>2019-01-18 14:03:53 -0800
commit340a6f3d2d52a1b72f3454818e53293807f8f127 (patch)
tree9316f889cca420da27a65f70324100b2153ab6f9 /include
parentnet: jme: fix indentation issues (diff)
downloadlinux-dev-340a6f3d2d52a1b72f3454818e53293807f8f127.tar.xz
linux-dev-340a6f3d2d52a1b72f3454818e53293807f8f127.zip
tcp: declare tcp_mmap() only when CONFIG_MMU is set
Since tcp_mmap() is defined when CONFIG_MMU is set. Signed-off-by: Yafang Shao <laoar.shao@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--include/net/tcp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index e0a65c067662..5c950180d61b 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -406,8 +406,10 @@ int tcp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int nonblock,
int flags, int *addr_len);
int tcp_set_rcvlowat(struct sock *sk, int val);
void tcp_data_ready(struct sock *sk);
+#ifdef CONFIG_MMU
int tcp_mmap(struct file *file, struct socket *sock,
struct vm_area_struct *vma);
+#endif
void tcp_parse_options(const struct net *net, const struct sk_buff *skb,
struct tcp_options_received *opt_rx,
int estab, struct tcp_fastopen_cookie *foc);