[Top] [All Lists]

Compilation fails with CONFIG_DEBUG_SPINLOCK

Subject: Compilation fails with CONFIG_DEBUG_SPINLOCK
From: Thomas Petazzoni <>
Date: Wed, 13 Oct 2004 11:20:57 +0200
Original-recipient: rfc822;
User-agent: Mutt/1.5.4i

With the last CVS, if you check CONFIG_DEBUG_SPINLOCK, the compilation
fails :

arch/mips/kernel/built-in.o(.text+0x2e84): In function `probe_irq_on':
: undefined reference to `atomic_lock'
arch/mips/kernel/built-in.o(.text+0x2e88): In function `probe_irq_on':
: undefined reference to `atomic_lock'
arch/mips/kernel/built-in.o(.text+0x2e90): In function `probe_irq_on':
: undefined reference to `atomic_lock'
arch/mips/kernel/built-in.o(.text+0x2e94): In function `probe_irq_on':
: undefined reference to `atomic_lock'
arch/mips/kernel/built-in.o(.text+0x2ebc): In function `probe_irq_on':
: undefined reference to `atomic_lock'
arch/mips/kernel/built-in.o(.text+0x2ec0): more undefined references
to `atomic_lock' follow
make: *** [.tmp_vmlinux1] Error 1

Some macros in include/asm/atomic.h uses a spinlock called
atomic_lock. An "extern" definition is made at the top of the file,
but the real spinlock is not defined anywhere.

I think this is trivial to fix, but I'm not sure what is the right
place to declare the spin lock and to initialize it.

PETAZZONI Thomas - - Jabber:
KOS: - Lolut:
Fingerprint : 0BE1 4CF3 CEA4 AC9D CC6E  1624 F653 CB30 98D3 F7A7

<Prev in Thread] Current Thread [Next in Thread>