Skip to contentSkip to conversation

proc: nommu: Reduce useless includes

PATCH New Daniel Palmer 1 participant 1 message Oct 7

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 proc: nommu: Reduce useless includes

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.

---
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(-)
fs/proc/nommu.c +2 -16
index c6e7ebc63756..b173c8e3887d 100644
@@ -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
Signature · 1 line
2.53.0