Skip to content

Commit 4f1af60

Browse files
Ard Biesheuveltorvalds
authored andcommitted
mm/early_ioremap: add explicit #include of asm/early_ioremap.h
Commit 6b0f68e ("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>
1 parent 6798a8c commit 4f1af60

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mm/early_ioremap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <linux/mm.h>
1616
#include <linux/vmalloc.h>
1717
#include <asm/fixmap.h>
18+
#include <asm/early_ioremap.h>
1819

1920
#ifdef CONFIG_MMU
2021
static int early_ioremap_debug __initdata;

0 commit comments

Comments
 (0)