Skip to content

Commit e25934a

Browse files
author
Paul Gortmaker
committed
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>
1 parent 9a41845 commit e25934a

6 files changed

+0
-6
lines changed

mm/fremap.c

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
#include <linux/pagemap.h>
1414
#include <linux/swapops.h>
1515
#include <linux/rmap.h>
16-
#include <linux/module.h>
1716
#include <linux/syscalls.h>
1817
#include <linux/mmu_notifier.h>
1918

mm/mmzone.c

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include <linux/stddef.h>
99
#include <linux/mm.h>
1010
#include <linux/mmzone.h>
11-
#include <linux/module.h>
1211

1312
struct pglist_data *first_online_pgdat(void)
1413
{

mm/quicklist.c

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include <linux/gfp.h>
1818
#include <linux/mm.h>
1919
#include <linux/mmzone.h>
20-
#include <linux/module.h>
2120
#include <linux/quicklist.h>
2221

2322
DEFINE_PER_CPU(struct quicklist [CONFIG_NR_QUICK], quicklist);

mm/sparse-vmemmap.c

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include <linux/mmzone.h>
2222
#include <linux/bootmem.h>
2323
#include <linux/highmem.h>
24-
#include <linux/module.h>
2524
#include <linux/slab.h>
2625
#include <linux/spinlock.h>
2726
#include <linux/vmalloc.h>

mm/swap_state.c

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
*
77
* Rewritten to use page cache, (C) 1998 Stephen Tweedie
88
*/
9-
#include <linux/module.h>
109
#include <linux/mm.h>
1110
#include <linux/gfp.h>
1211
#include <linux/kernel_stat.h>

mm/swapfile.c

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include <linux/proc_fs.h>
2222
#include <linux/seq_file.h>
2323
#include <linux/init.h>
24-
#include <linux/module.h>
2524
#include <linux/ksm.h>
2625
#include <linux/rmap.h>
2726
#include <linux/security.h>

0 commit comments

Comments
 (0)