]> git.ipfire.org Git - people/arne_f/kernel.git/commit
xtensa: fix noMMU build on cores with MMU
authorMax Filippov <jcmvbkbc@gmail.com>
Wed, 1 Feb 2017 02:35:37 +0000 (18:35 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2017 07:08:25 +0000 (08:08 +0100)
commitdfd713307adb8747b47cb7bf6c08cb887b857c43
treebeef35b381c14471df002184c492525563800730
parentf2e24dd918189b355a2f7eeafede54778d18172d
xtensa: fix noMMU build on cores with MMU

commit 4b3e6f2ef3722f1a6a97b6034ed492c1a21fd4ae upstream.

Commit bf15f86b343ed8 ("xtensa: initialize MMU before jumping to reset
vector") calls MMU management functions even when CONFIG_MMU is not
selected. That breaks noMMU build on cores with MMU.

Don't manage MMU when CONFIG_MMU is not selected.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/xtensa/kernel/setup.c