Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: mohawk: allow building with MMU disabled

It is in principle possible to build an MMP kernel for
the mohawk CPU with the MMU code disabled, except for one
simple build error:

proc-mohawk.S:345: Error: invalid operands (*UND* and *UND* sections) for `|'
proc-mohawk.S:345: Error: invalid operands (*ABS* and *UND* sections) for `|'
proc-mohawk.S:345: Error: invalid operands (*UND* and *UND* sections) for `|'
proc-mohawk.S:345: Error: invalid operands (*UND* and *UND* sections) for `|'
proc-mohawk.S:345: Error: undefined symbol L_PTE_USER used as an immediate value

This patch changes the proc-mohawk code to do the same as the
other CPUs and not try to actually do anything for the
cpu_mohawk_set_pte_ext function, which won't be used anyway.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>

+2
+2
arch/arm/mm/proc-mohawk.S
··· 342 342 */ 343 343 .align 5 344 344 ENTRY(cpu_mohawk_set_pte_ext) 345 + #ifdef CONFIG_MMU 345 346 armv3_set_pte_ext 346 347 mov r0, r0 347 348 mcr p15, 0, r0, c7, c10, 1 @ clean D entry 348 349 mcr p15, 0, r0, c7, c10, 4 @ drain WB 349 350 ret lr 351 + #endif 350 352 351 353 .globl cpu_mohawk_suspend_size 352 354 .equ cpu_mohawk_suspend_size, 4 * 6