diff mbox series

[1/2] net: Remove mm.h from net.h

Message ID 20210621164920.3180672-1-willy@infradead.org
State New
Headers show
Series [1/2] net: Remove mm.h from net.h | expand

Commit Message

Matthew Wilcox June 21, 2021, 4:49 p.m. UTC
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 mbox series

Patch

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>