projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb70950
)
tcp: declare tcp_mmap() only when CONFIG_MMU is set
author
Yafang Shao
<
[email protected]
>
Thu, 17 Jan 2019 10:03:14 +0000
(18:03 +0800)
committer
David S. Miller
<
[email protected]
>
Fri, 18 Jan 2019 22:03:53 +0000
(14:03 -0800)
Since tcp_mmap() is defined when CONFIG_MMU is set.
Signed-off-by: Yafang Shao <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
include/net/tcp.h
patch
|
blob
|
history
diff --git
a/include/net/tcp.h
b/include/net/tcp.h
index e0a65c067662346f26a14754ac73de0600d797a8..5c950180d61be90033e7954a128a7c5ffca86c7c 100644
(file)
--- 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);