* [PATCH] proc: nommu: Reduce useless includes
@ 2026-10-07 17:48 Daniel Palmer
0 siblings, 0 replies; only message in thread
From: Daniel Palmer @ 2026-10-07 17:48 UTC (permalink / raw)
To: linux-fsdevel; +Cc: linux-kernel, thehajime, Daniel Palmer
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@thingy.jp>
---
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-07 17:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-07 17:48 [PATCH] proc: nommu: Reduce useless includes Daniel Palmer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®