linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] net: Remove mm.h from net.h
@ 2021-06-21 16:49 Matthew Wilcox (Oracle)
  2021-06-21 16:49 ` [PATCH 2/2] net: Remove fs.h " Matthew Wilcox (Oracle)
  0 siblings, 1 reply; 2+ messages in thread
From: Matthew Wilcox (Oracle) @ 2021-06-21 16:49 UTC (permalink / raw)
  To: David S. Miller, Jakub Kicinski, netdev
  Cc: Matthew Wilcox (Oracle), linux-fsdevel, linux-kernel, Alexander Viro

We only need page_ref.h here (which provides page_count() directly
and PageSlab() by pulling in page-flags.h)

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
---
 include/linux/net.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/net.h b/include/linux/net.h
index ba736b457a06..f54c8f478f3e 100644
--- a/include/linux/net.h
+++ b/include/linux/net.h
@@ -21,7 +21,7 @@
 #include <linux/rcupdate.h>
 #include <linux/once.h>
 #include <linux/fs.h>
-#include <linux/mm.h>
+#include <linux/page_ref.h>
 #include <linux/sockptr.h>
 
 #include <uapi/linux/net.h>
-- 
2.30.2


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

end of thread, other threads:[~2021-06-21 17:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-21 16:49 [PATCH 1/2] net: Remove mm.h from net.h Matthew Wilcox (Oracle)
2021-06-21 16:49 ` [PATCH 2/2] net: Remove fs.h " Matthew Wilcox (Oracle)

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).