]> git.baikalelectronics.ru Git - kernel.git/commit
m68k: include asm/cmpxchg.h in our m68k atomic.h
authorGreg Ungerer <gerg@uclinux.org>
Fri, 30 Mar 2012 05:52:09 +0000 (15:52 +1000)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 1 Apr 2012 20:57:49 +0000 (22:57 +0200)
commit9e4eb8fc54ff46382ab7a0219c675909e6cf2308
treeef39bbd027772ebec21435f762815d783ba0e3da
parentf6668f74d5b8d670730db2b990d7858425f3b63c
m68k: include asm/cmpxchg.h in our m68k atomic.h

After commit 57eb44ce93489c20715a5c0b8a70e47e7d3c77de ("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.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/include/asm/atomic.h