aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2007-10-17 02:29:23 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-17 11:42:55 -0400
commit4af3c9cc4fad54c3627e9afebf905aafde5690ed (patch)
tree655364e458b8734a86c632316f4b5a1518529c60
parent1a614f505193fcfc1b298643268a5db5b48e297f (diff)
Drop some headers from mm.h
mm.h doesn't use directly anything from mutex.h and backing-dev.h, so remove them and add them back to files which need them. Cross-compile tested on many configs and archs. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--fs/afs/write.c2
-rw-r--r--include/linux/mm.h2
-rw-r--r--mm/fremap.c2
-rw-r--r--mm/mmap.c1
-rw-r--r--mm/truncate.c1
5 files changed, 4 insertions, 4 deletions
diff --git a/fs/afs/write.c b/fs/afs/write.c
index bf0955d91f85..9a849ad3c489 100644
--- a/fs/afs/write.c
+++ b/fs/afs/write.c
@@ -8,7 +8,7 @@
8 * as published by the Free Software Foundation; either version 8 * as published by the Free Software Foundation; either version
9 * 2 of the License, or (at your option) any later version. 9 * 2 of the License, or (at your option) any later version.
10 */ 10 */
11 11#include <linux/backing-dev.h>
12#include <linux/slab.h> 12#include <linux/slab.h>
13#include <linux/fs.h> 13#include <linux/fs.h>
14#include <linux/pagemap.h> 14#include <linux/pagemap.h>
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 7e87e1b1662e..520238cbae5d 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -10,9 +10,7 @@
10#include <linux/mmzone.h> 10#include <linux/mmzone.h>
11#include <linux/rbtree.h> 11#include <linux/rbtree.h>
12#include <linux/prio_tree.h> 12#include <linux/prio_tree.h>
13#include <linux/mutex.h>
14#include <linux/debug_locks.h> 13#include <linux/debug_locks.h>
15#include <linux/backing-dev.h>
16#include <linux/mm_types.h> 14#include <linux/mm_types.h>
17 15
18struct mempolicy; 16struct mempolicy;
diff --git a/mm/fremap.c b/mm/fremap.c
index 95bcb5641c72..37a93f8f3aec 100644
--- a/mm/fremap.c
+++ b/mm/fremap.c
@@ -5,7 +5,7 @@
5 * 5 *
6 * started by Ingo Molnar, Copyright (C) 2002, 2003 6 * started by Ingo Molnar, Copyright (C) 2002, 2003
7 */ 7 */
8 8#include <linux/backing-dev.h>
9#include <linux/mm.h> 9#include <linux/mm.h>
10#include <linux/swap.h> 10#include <linux/swap.h>
11#include <linux/file.h> 11#include <linux/file.h>
diff --git a/mm/mmap.c b/mm/mmap.c
index 0d40e66c841b..9e685b9abcde 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -7,6 +7,7 @@
7 */ 7 */
8 8
9#include <linux/slab.h> 9#include <linux/slab.h>
10#include <linux/backing-dev.h>
10#include <linux/mm.h> 11#include <linux/mm.h>
11#include <linux/shm.h> 12#include <linux/shm.h>
12#include <linux/mman.h> 13#include <linux/mman.h>
diff --git a/mm/truncate.c b/mm/truncate.c
index ff78505453d4..cadc15653dde 100644
--- a/mm/truncate.c
+++ b/mm/truncate.c
@@ -8,6 +8,7 @@
8 */ 8 */
9 9
10#include <linux/kernel.h> 10#include <linux/kernel.h>
11#include <linux/backing-dev.h>
11#include <linux/mm.h> 12#include <linux/mm.h>
12#include <linux/swap.h> 13#include <linux/swap.h>
13#include <linux/module.h> 14#include <linux/module.h>