]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Make asm-generic/cmpxchg.h #include asm-generic/cmpxchg-local.h
authorDavid Howells <dhowells@redhat.com>
Wed, 28 Mar 2012 17:30:03 +0000 (18:30 +0100)
committerDavid Howells <dhowells@redhat.com>
Wed, 28 Mar 2012 17:30:03 +0000 (18:30 +0100)
Make asm-generic/cmpxchg.h #include asm-generic/cmpxchg-local.h as all arch
files that #include the former also #include the latter.  See:

grep -rl asm-generic/cmpxchg-local[.]h arch/ | sort > b
grep -rl asm-generic/cmpxchg[.]h arch/ | sort > a
comm a b

This simplifies the disintegration of asm-generic/system.h for arches that
don't have their own.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
include/asm-generic/atomic.h
include/asm-generic/cmpxchg.h
include/asm-generic/system.h

index e37963c1df4da6ee5c586b455b22efdb919e035e..8b8cf9412989d2c8e1ec3cd2c7aa16351b3e6b51 100644 (file)
@@ -15,6 +15,8 @@
 #ifndef __ASM_GENERIC_ATOMIC_H
 #define __ASM_GENERIC_ATOMIC_H
 
+#include <asm/cmpxchg.h>
+
 #ifdef CONFIG_SMP
 /* Force people to define core atomics */
 # if !defined(atomic_add_return) || !defined(atomic_sub_return) || \
index 213ac6e8fe392b536480898e626ad3ff523a1e5d..e0449af91f607207738907419482c29838aed56c 100644 (file)
@@ -10,6 +10,8 @@
 #error "Cannot use generic cmpxchg on SMP"
 #endif
 
+#include <asm-generic/cmpxchg-local.h>
+
 /*
  * Atomic compare and exchange.
  *
index 215efa74f5a2b539494ad1a42f62b52199a9715e..82cb53abb9f69575e1f9760f3f5f71ac8291d0c2 100644 (file)
@@ -19,7 +19,6 @@
 #include <linux/types.h>
 #include <linux/irqflags.h>
 
-#include <asm/cmpxchg-local.h>
 #include <asm/cmpxchg.h>
 
 struct task_struct;