From: Alexey Dobriyan Date: Wed, 17 Oct 2007 06:29:23 +0000 (-0700) Subject: Drop some headers from mm.h X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4af3c9cc4fad54c3627e9afebf905aafde5690ed;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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 @@ * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ - +#include #include #include #include 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 @@ #include #include #include -#include #include -#include #include struct 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 @@ * * started by Ingo Molnar, Copyright (C) 2002, 2003 */ - +#include #include #include #include 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 @@ */ #include +#include #include #include #include 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 @@ */ #include +#include #include #include #include