Skip to content
Commit 0871b724 authored by Russell King's avatar Russell King
Browse files

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: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent bac51ad9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment