summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2011-05-26 15:58:15 -0400
committerPaul Gortmaker <paul.gortmaker@windriver.com>2011-10-31 09:20:11 -0400
commite25934a51772f47edd94d7b7d08b0e167769639c (patch)
treec72dd84e95178d1e5e5223bf5a736e75430f1305
parent9a418455134f5dc23f124d2818b2e8e1cea997a1 (diff)
downloadlinux-3.10-e25934a51772f47edd94d7b7d08b0e167769639c.tar.gz
linux-3.10-e25934a51772f47edd94d7b7d08b0e167769639c.tar.bz2
linux-3.10-e25934a51772f47edd94d7b7d08b0e167769639c.zip
mm: delete various needless include <linux/module.h>
There is nothing modular in these files, and no reason to drag in all the 357 headers that module.h brings with it, since it just slows down compiles. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
-rw-r--r--mm/fremap.c1
-rw-r--r--mm/mmzone.c1
-rw-r--r--mm/quicklist.c1
-rw-r--r--mm/sparse-vmemmap.c1
-rw-r--r--mm/swap_state.c1
-rw-r--r--mm/swapfile.c1
6 files changed, 0 insertions, 6 deletions
diff --git a/mm/fremap.c b/mm/fremap.c
index b8e0e2d468a..9ed4fd43246 100644
--- a/mm/fremap.c
+++ b/mm/fremap.c
@@ -13,7 +13,6 @@
#include <linux/pagemap.h>
#include <linux/swapops.h>
#include <linux/rmap.h>
-#include <linux/module.h>
#include <linux/syscalls.h>
#include <linux/mmu_notifier.h>
diff --git a/mm/mmzone.c b/mm/mmzone.c
index f5b7d176021..7cf7b7ddc7c 100644
--- a/mm/mmzone.c
+++ b/mm/mmzone.c
@@ -8,7 +8,6 @@
#include <linux/stddef.h>
#include <linux/mm.h>
#include <linux/mmzone.h>
-#include <linux/module.h>
struct pglist_data *first_online_pgdat(void)
{
diff --git a/mm/quicklist.c b/mm/quicklist.c
index 2876349339a..94221297052 100644
--- a/mm/quicklist.c
+++ b/mm/quicklist.c
@@ -17,7 +17,6 @@
#include <linux/gfp.h>
#include <linux/mm.h>
#include <linux/mmzone.h>
-#include <linux/module.h>
#include <linux/quicklist.h>
DEFINE_PER_CPU(struct quicklist [CONFIG_NR_QUICK], quicklist);
diff --git a/mm/sparse-vmemmap.c b/mm/sparse-vmemmap.c
index 64b984091ed..1b7e22ab9b0 100644
--- a/mm/sparse-vmemmap.c
+++ b/mm/sparse-vmemmap.c
@@ -21,7 +21,6 @@
#include <linux/mmzone.h>
#include <linux/bootmem.h>
#include <linux/highmem.h>
-#include <linux/module.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/vmalloc.h>
diff --git a/mm/swap_state.c b/mm/swap_state.c
index 46680461785..78cc4d1f6cc 100644
--- a/mm/swap_state.c
+++ b/mm/swap_state.c
@@ -6,7 +6,6 @@
*
* Rewritten to use page cache, (C) 1998 Stephen Tweedie
*/
-#include <linux/module.h>
#include <linux/mm.h>
#include <linux/gfp.h>
#include <linux/kernel_stat.h>
diff --git a/mm/swapfile.c b/mm/swapfile.c
index 17bc224bce6..32313f30a68 100644
--- a/mm/swapfile.c
+++ b/mm/swapfile.c
@@ -21,7 +21,6 @@
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/init.h>
-#include <linux/module.h>
#include <linux/ksm.h>
#include <linux/rmap.h>
#include <linux/security.h>