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@xxxxxxxxxxxxx> --- 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