]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: fix __virt_to_idmap build error on !MMU
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 17 Jul 2015 09:33:04 +0000 (10:33 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 17 Jul 2015 14:08:40 +0000 (15:08 +0100)
commitf2f592260c930e150cd344ad258eb94ebfcf0583
tree89a5fddb18c7133654d3e53c0e84a3eebbd4ed7b
parent8a150706baa012a1baae4b2efc3b1f4f06d85f43
ARM: fix __virt_to_idmap build error on !MMU

Fengguang Wu reports that building ARM with !MMU results in the
following build error:

   arch/arm/kernel/built-in.o: In function `__soft_restart':
>> :(.text+0x1624): undefined reference to `arch_virt_to_idmap'

Fix this by adding an appropriate IS_ENABLED(CONFIG_MMU) into the
__virt_to_idmap() inline function.

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