[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAFRkauDwTBDbjs4+xba0-p_+2mX3tWAN0asUo-aG1ZYjRyaCrg@mail.gmail.com>
Date: Fri, 18 Oct 2013 22:21:16 +0800
From: Axel Lin <axel.lin@...ics.com>
To: "Michael S. Tsirkin" <mst@...hat.com>
Cc: linux-arm-kernel@...ts.infradead.org,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Peter Zijlstra <peterz@...radead.org>
Subject: Re: Build error for nommu if CONFIG_DEBUG_ATOMIC_SLEEP is selected
2013/10/18 Michael S. Tsirkin <mst@...hat.com>:
> On Fri, Oct 18, 2013 at 05:27:55PM +0800, Axel Lin wrote:
>> Hi Michael,
>>
>> I got below build error for nommu if CONFIG_DEBUG_ATOMIC_SLEEP is selected.
>> Also got the same build error if CONFIG_PROVE_LOCKING is selected.
>>
>> Seems this issue is introduced by commit 662bbcb2747c2
>> "mm, sched: Allow uaccess in atomic with pagefault_disable()".
>>
>> arch/arm/kernel/built-in.o: In function `arch_ptrace':
>> arch/arm/kernel/ptrace.c:852: undefined reference to `might_fault'
>> arch/arm/kernel/built-in.o: In function `restore_sigframe':
>> arch/arm/kernel/signal.c:173: undefined reference to `might_fault'
>> arch/arm/kernel/signal.c:174: undefined reference to `might_fault'
>> arch/arm/kernel/signal.c:175: undefined reference to `might_fault'
>> arch/arm/kernel/signal.c:176: undefined reference to `might_fault'
>> arch/arm/kernel/built-in.o:arch/arm/kernel/signal.c:177: more undefined references to `might_fault' follow
>> make: *** [vmlinux] Error 1
>>
>> Regards,
>> Axel
>
> Can you send/upload your full .config please?
I patch the kernel to port it for an arm7tdmi SoC.
But I think you can easily reproduce it by simply
select ARM7TDMI cpu and then enable either
CONFIG_DEBUG_ATOMIC_SLEEP or CONFIG_PROVE_LOCKING.
Note, might_fault is implemented in mm/memory.c which is not built if
!CONFIG_MMU.
Regards,
Axel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists