From: Daniel Palmer <daniel@thingy.jp>
To: linux-fsdevel@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, thehajime@gmail.com,
Daniel Palmer <daniel@thingy.jp>
Subject: [PATCH] proc: nommu: Reduce useless includes
Date: Thu, 8 Oct 2026 02:48:45 +0900 [thread overview]
Message-ID: <20261007174845.1320996-1-daniel@thingy.jp> (raw)
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
reply other threads:[~2026-10-07 17:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261007174845.1320996-1-daniel@thingy.jp \
--to=daniel@thingy.jp \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=thehajime@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox