diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2007-10-16 23:29:23 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-17 08:42:55 -0700 |
commit | 4af3c9cc4fad54c3627e9afebf905aafde5690ed (patch) | |
tree | 655364e458b8734a86c632316f4b5a1518529c60 | |
parent | 1a614f505193fcfc1b298643268a5db5b48e297f (diff) | |
download | op-kernel-dev-4af3c9cc4fad54c3627e9afebf905aafde5690ed.zip op-kernel-dev-4af3c9cc4fad54c3627e9afebf905aafde5690ed.tar.gz |
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.c | 2 | ||||
-rw-r--r-- | include/linux/mm.h | 2 | ||||
-rw-r--r-- | mm/fremap.c | 2 | ||||
-rw-r--r-- | mm/mmap.c | 1 | ||||
-rw-r--r-- | mm/truncate.c | 1 |
5 files changed, 4 insertions, 4 deletions
diff --git a/fs/afs/write.c b/fs/afs/write.c index bf0955d..9a849ad 100644 --- a/fs/afs/write.c +++ b/fs/afs/write.c @@ -8,7 +8,7 @@ * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ - +#include <linux/backing-dev.h> #include <linux/slab.h> #include <linux/fs.h> #include <linux/pagemap.h> diff --git a/include/linux/mm.h b/include/linux/mm.h index 7e87e1b..520238c 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -10,9 +10,7 @@ #include <linux/mmzone.h> #include <linux/rbtree.h> #include <linux/prio_tree.h> -#include <linux/mutex.h> #include <linux/debug_locks.h> -#include <linux/backing-dev.h> #include <linux/mm_types.h> struct mempolicy; diff --git a/mm/fremap.c b/mm/fremap.c index 95bcb56..37a93f8 100644 --- a/mm/fremap.c +++ b/mm/fremap.c @@ -5,7 +5,7 @@ * * started by Ingo Molnar, Copyright (C) 2002, 2003 */ - +#include <linux/backing-dev.h> #include <linux/mm.h> #include <linux/swap.h> #include <linux/file.h> @@ -7,6 +7,7 @@ */ #include <linux/slab.h> +#include <linux/backing-dev.h> #include <linux/mm.h> #include <linux/shm.h> #include <linux/mman.h> diff --git a/mm/truncate.c b/mm/truncate.c index ff78505..cadc156 100644 --- a/mm/truncate.c +++ b/mm/truncate.c @@ -8,6 +8,7 @@ */ #include <linux/kernel.h> +#include <linux/backing-dev.h> #include <linux/mm.h> #include <linux/swap.h> #include <linux/module.h> |