[PATCH] proc: nommu: Reduce useless includes

From: Daniel Palmer

Date: Wed Oct 07 2026 - 13:52:24 EST


This file seems to have undergone refactoring without cleaning up
the unneeded includes so now includes a number of headers that
are no longer needed.

Clean up the includes to cover just what is needed.

Signed-off-by: Daniel Palmer <daniel@xxxxxxxxx>
---
Spotted this while trying to work out something else.
Build + boot tested on m68k (68000) nommu.


fs/proc/nommu.c | 18 ++----------------
1 file changed, 2 insertions(+), 16 deletions(-)

diff --git a/fs/proc/nommu.c b/fs/proc/nommu.c
index c6e7ebc63756..b173c8e3887d 100644
--- a/fs/proc/nommu.c
+++ b/fs/proc/nommu.c
@@ -6,24 +6,10 @@
*/

#include <linux/init.h>
-#include <linux/module.h>
-#include <linux/errno.h>
-#include <linux/time.h>
-#include <linux/kernel.h>
-#include <linux/string.h>
-#include <linux/mman.h>
-#include <linux/proc_fs.h>
#include <linux/mm.h>
-#include <linux/mmzone.h>
-#include <linux/pagemap.h>
-#include <linux/swap.h>
-#include <linux/smp.h>
+#include <linux/proc_fs.h>
+#include <linux/rbtree.h>
#include <linux/seq_file.h>
-#include <linux/hugetlb.h>
-#include <linux/vmalloc.h>
-#include <asm/tlb.h>
-#include <asm/div64.h>
-#include "internal.h"

/*
* display a single region to a sequenced file
--
2.53.0