* Build error for nommu if CONFIG_DEBUG_ATOMIC_SLEEP is selected
@ 2013-10-18 9:27 Axel Lin
2013-10-18 14:12 ` Michael S. Tsirkin
0 siblings, 1 reply; 4+ messages in thread
From: Axel Lin @ 2013-10-18 9:27 UTC (permalink / raw)
To: linux-arm-kernel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Build error for nommu if CONFIG_DEBUG_ATOMIC_SLEEP is selected
2013-10-18 9:27 Build error for nommu if CONFIG_DEBUG_ATOMIC_SLEEP is selected Axel Lin
@ 2013-10-18 14:12 ` Michael S. Tsirkin
2013-10-18 14:21 ` Axel Lin
0 siblings, 1 reply; 4+ messages in thread
From: Michael S. Tsirkin @ 2013-10-18 14:12 UTC (permalink / raw)
To: linux-arm-kernel
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?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Build error for nommu if CONFIG_DEBUG_ATOMIC_SLEEP is selected
2013-10-18 14:12 ` Michael S. Tsirkin
@ 2013-10-18 14:21 ` Axel Lin
2013-10-18 15:30 ` Michael S. Tsirkin
0 siblings, 1 reply; 4+ messages in thread
From: Axel Lin @ 2013-10-18 14:21 UTC (permalink / raw)
To: linux-arm-kernel
2013/10/18 Michael S. Tsirkin <mst@redhat.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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Build error for nommu if CONFIG_DEBUG_ATOMIC_SLEEP is selected
2013-10-18 14:21 ` Axel Lin
@ 2013-10-18 15:30 ` Michael S. Tsirkin
0 siblings, 0 replies; 4+ messages in thread
From: Michael S. Tsirkin @ 2013-10-18 15:30 UTC (permalink / raw)
To: linux-arm-kernel
On Fri, Oct 18, 2013 at 10:21:16PM +0800, Axel Lin wrote:
> 2013/10/18 Michael S. Tsirkin <mst@redhat.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
Shouldn't might_fault return 0 if !CONFIG_MMU?
No mmu->no fault ...
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-10-18 15:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-18 9:27 Build error for nommu if CONFIG_DEBUG_ATOMIC_SLEEP is selected Axel Lin
2013-10-18 14:12 ` Michael S. Tsirkin
2013-10-18 14:21 ` Axel Lin
2013-10-18 15:30 ` Michael S. Tsirkin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).