]> git.baikalelectronics.ru Git - kernel.git/commit
mm/early_ioremap: add explicit #include of asm/early_ioremap.h
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 11 Sep 2015 20:07:50 +0000 (13:07 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 11 Sep 2015 22:21:34 +0000 (15:21 -0700)
commitecaf7254488e9cf8e92d94be2617644160076349
treee039fbe0a2ea79c7d14382e80af32cfe1214d870
parentc4fb4b09b5abaac5e9a1e9d2b75dcb6596fc0a14
mm/early_ioremap: add explicit #include of asm/early_ioremap.h

Commit 1073065ac8eb ("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>
mm/early_ioremap.c