aboutsummaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2015-09-11 13:07:50 -0700
committerAlex Shi <alex.shi@linaro.org>2016-04-27 09:47:21 +0800
commit6a0f00404e19df845ecf944ae6b74721334b3dab (patch)
tree3a6ecf14e433236ff5089ec9f6df15053fc1f73c /mm
parent9609c303d79f922670a27f07f510a5593dc8093d (diff)
mm/early_ioremap: add explicit #include of asm/early_ioremap.h
Commit 6b0f68e32ea8 ("mm: add utility for early copy from unmapped ram") introduces a function copy_from_early_mem() into mm/early_ioremap.c which itself calls early_memremap()/early_memunmap(). However, since early_memunmap() has not been declared yet at this point in the .c file, nor by any explicitly included header files, we are depending on a transitive include of asm/early_ioremap.h to declare it, which is fragile. So instead, include this header explicitly. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Acked-by: Mark Salter <msalter@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> (cherry picked from commit 4f1af60bcc2fc6caa7fa3036238b5994708e9a84) Signed-off-by: Alex Shi <alex.shi@linaro.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/early_ioremap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/early_ioremap.c b/mm/early_ioremap.c
index a0baeb4be934..d0d7cdbfb69f 100644
--- a/mm/early_ioremap.c
+++ b/mm/early_ioremap.c
@@ -15,6 +15,7 @@
#include <linux/mm.h>
#include <linux/vmalloc.h>
#include <asm/fixmap.h>
+#include <asm/early_ioremap.h>
#ifdef CONFIG_MMU
static int early_ioremap_debug __initdata;