aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dump_stack.c
diff options
context:
space:
mode:
authorSudip Mukherjee <[email protected]>2016-02-05 23:36:10 +0000
committerLinus Torvalds <[email protected]>2016-02-06 02:10:40 +0000
commitaf1ddcb5c63cfb9744c29e88db0bab6bb25ad76b (patch)
tree8696d729ff46ffc56c33a70d3ca45f0d31e9af49 /lib/dump_stack.c
parentblock: fix pfn_mkwrite() DAX fault handler (diff)
downloadkernel-af1ddcb5c63cfb9744c29e88db0bab6bb25ad76b.tar.gz
kernel-af1ddcb5c63cfb9744c29e88db0bab6bb25ad76b.zip
m32r: fix build failure due to SMP and MMU
One of the randconfig build failed with the error: arch/m32r/kernel/smp.c: In function 'smp_flush_tlb_mm': arch/m32r/kernel/smp.c:283:20: error: subscripted value is neither array nor pointer nor vector mmc = &mm->context[cpu_id]; ^ arch/m32r/kernel/smp.c: In function 'smp_flush_tlb_page': arch/m32r/kernel/smp.c:353:20: error: subscripted value is neither array nor pointer nor vector mmc = &mm->context[cpu_id]; ^ arch/m32r/kernel/smp.c: In function 'smp_invalidate_interrupt': arch/m32r/kernel/smp.c:479:41: error: subscripted value is neither array nor pointer nor vector unsigned long *mmc = &flush_mm->context[cpu_id]; It turned out that CONFIG_SMP was defined but CONFIG_MMU was not defined. But arch/m32r/include/asm/mmu.h only defines mm_context_t as an array when both CONFIG_SMP and CONFIG_MMU are defined. And arch/m32r/kernel/smp.c is always using context as an array. So without MMU SMP can not work. Signed-off-by: Sudip Mukherjee <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/dump_stack.c')
0 files changed, 0 insertions, 0 deletions