Skip to contentSkip to conversation

m68k: include asm/cmpxchg.h in our m68k atomic.h

PATCH In review [email protected] 3 participants 3 messages Mar 30, 2012 – Mar 31, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 m68k: include asm/cmpxchg.h in our m68k atomic.h

From: Greg Ungerer <[email protected]>

After commit 9ffc93f203c18a70623f21950f1dd473c9ec48cd ("Remove all

CC init/main.o
In file included from include/linux/mm.h:15:0,

                 from include/linux/ring_buffer.h:5,
                 from include/linux/ftrace_event.h:4,
                 from include/trace/syscall.h:6,
                 from include/linux/syscalls.h:78,
                 from init/main.c:16:

include/linux/debug_locks.h: In function ‘__debug_locks_off’:
include/linux/debug_locks.h:16:2: error: implicit declaration of function ‘xchg’

There is no indirect inclusions of the new asm/cmpxchg.h for m68k here. Looking at most other architectures they include asm/cmpxchg.h in their asm/atomic.h. M68k currently does not do this. Including this in atomic.h fixes all m68k build problems.

---
 arch/m68k/include/asm/atomic.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/m68k/include/asm/atomic.h +1 -0
index 336e617..f4e32de 100644
@@ -3,6 +3,7 @@
 
 #include <linux/types.h>
 #include <linux/irqflags.h>
+#include <asm/cmpxchg.h>
 
 /*
  * Atomic operations that C can't guarantee us.  Useful for
Signature · 1 line
1.7.0.4
Acked-by on v1 1/1
#1 lore raw
Quoted 14 lines · <[email protected]> wrote:

From: Greg Ungerer <[email protected]>

After commit 9ffc93f203c18a70623f21950f1dd473c9ec48cd ("Remove all

CC init/main.o
In file included from include/linux/mm.h:15:0,

                 from include/linux/ring_buffer.h:5,
                 from include/linux/ftrace_event.h:4,
                 from include/trace/syscall.h:6,
                 from include/linux/syscalls.h:78,
                 from init/main.c:16:

include/linux/debug_locks.h: In function ‘__debug_locks_off’:
include/linux/debug_locks.h:16:2: error: implicit declaration of function ‘xchg’

Quoted 6 lines

There is no indirect inclusions of the new asm/cmpxchg.h for m68k here. Looking at most other architectures they include asm/cmpxchg.h in their asm/atomic.h. M68k currently does not do this. Including this in atomic.h fixes all m68k build problems.

#2 lore raw
Quoted 16 lines · David Howells
Quoted 14 lines · <[email protected]> wrote:

From: Greg Ungerer <[email protected]>

After commit 9ffc93f203c18a70623f21950f1dd473c9ec48cd ("Remove all

  CC      init/main.o
In file included from include/linux/mm.h:15:0,
                 from include/linux/ring_buffer.h:5,
                 from include/linux/ftrace_event.h:4,
                 from include/trace/syscall.h:6,
                 from include/linux/syscalls.h:78,
                 from init/main.c:16:
include/linux/debug_locks.h: In function ‘__debug_locks_off’:
include/linux/debug_locks.h:16:2: error: implicit declaration of function ‘xchg’

Quoted 8 lines
Quoted 6 lines

There is no indirect inclusions of the new asm/cmpxchg.h for m68k here. Looking at most other architectures they include asm/cmpxchg.h in their asm/atomic.h. M68k currently does not do this. Including this in atomic.h fixes all m68k build problems.

Thanks! I hope to create for-3.4 and for-3.5 branches tomorrow.

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds