From: Ard Biesheuvel Date: Fri, 11 Sep 2015 20:07:50 +0000 (-0700) Subject: mm/early_ioremap: add explicit #include of asm/early_ioremap.h X-Git-Tag: v4.3-rc1~5^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4f1af60bcc2fc6caa7fa3036238b5994708e9a84;p=karo-tx-linux.git 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 Acked-by: Mark Salter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/early_ioremap.c b/mm/early_ioremap.c index 23f744d77ce0..17ae14b5aefa 100644 --- a/mm/early_ioremap.c +++ b/mm/early_ioremap.c @@ -15,6 +15,7 @@ #include #include #include +#include #ifdef CONFIG_MMU static int early_ioremap_debug __initdata;