netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] tcp: declare tcp_mmap() only when CONFIG_MMU is set
@ 2019-01-17 10:03 Yafang Shao
  2019-01-18 22:04 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Yafang Shao @ 2019-01-17 10:03 UTC (permalink / raw)
  To: davem, edumazet; +Cc: netdev, shaoyafang, Yafang Shao

Since tcp_mmap() is defined when CONFIG_MMU is set.

Signed-off-by: Yafang Shao <laoar.shao@gmail.com>
---
 include/net/tcp.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/net/tcp.h b/include/net/tcp.h
index e0a65c0..5c95018 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);
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next] tcp: declare tcp_mmap() only when CONFIG_MMU is set
  2019-01-17 10:03 [PATCH net-next] tcp: declare tcp_mmap() only when CONFIG_MMU is set Yafang Shao
@ 2019-01-18 22:04 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2019-01-18 22:04 UTC (permalink / raw)
  To: laoar.shao; +Cc: edumazet, netdev, shaoyafang

From: Yafang Shao <laoar.shao@gmail.com>
Date: Thu, 17 Jan 2019 18:03:14 +0800

> Since tcp_mmap() is defined when CONFIG_MMU is set.
> 
> Signed-off-by: Yafang Shao <laoar.shao@gmail.com>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-18 22:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-17 10:03 [PATCH net-next] tcp: declare tcp_mmap() only when CONFIG_MMU is set Yafang Shao
2019-01-18 22:04 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).