ARM: fix misplaced arch_virt_to_idmap()
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 29 Oct 2013 23:06:44 +0000 (23:06 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 29 Oct 2013 23:06:44 +0000 (23:06 +0000)
commit5e4432d3bd6b5b19e10bb263e7dbe8e74d7cf1c2
tree6980287922e9e8e70c18d343bf426176aec43bbd
parent830fd4d6de1785942e34babe0a8984f72b534b25
ARM: fix misplaced arch_virt_to_idmap()

Olof Johansson reported:

In file included from arch/arm/include/asm/page.h:163:0,
                 from include/linux/mm_types.h:16,
                 from include/linux/sched.h:24,
                 from arch/arm/kernel/asm-offsets.c:13:
arch/arm/include/asm/memory.h: In function '__virt_to_idmap':
arch/arm/include/asm/memory.h:300:6: error: 'arch_virt_to_idmap' undeclared (first use in this function)

caused by arch_virt_to_idmap being placed inside a different
preprocessor conditional to its user.  Move it along side its user.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/memory.h