Home
last modified time | relevance | path

Searched hist:"4 f1af60bcc2fc6caa7fa3036238b5994708e9a84" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/mm/
H A Dearly_ioremap.cdiff 4f1af60bcc2fc6caa7fa3036238b5994708e9a84 Fri Sep 11 15:07:50 CDT 2015 Ard Biesheuvel <ard.biesheuvel@linaro.org> 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>