From: David Howells Date: Wed, 28 Mar 2012 17:30:03 +0000 (+0100) Subject: Make asm-generic/cmpxchg.h #include asm-generic/cmpxchg-local.h X-Git-Tag: v3.4-rc1~54^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=34484277b173d0af1bb00532a264940b57920429;p=platform%2Fkernel%2Flinux-stable.git Make asm-generic/cmpxchg.h #include asm-generic/cmpxchg-local.h 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 Acked-by: Arnd Bergmann --- diff --git a/include/asm-generic/atomic.h b/include/asm-generic/atomic.h index e37963c1..8b8cf94 100644 --- a/include/asm-generic/atomic.h +++ b/include/asm-generic/atomic.h @@ -15,6 +15,8 @@ #ifndef __ASM_GENERIC_ATOMIC_H #define __ASM_GENERIC_ATOMIC_H +#include + #ifdef CONFIG_SMP /* Force people to define core atomics */ # if !defined(atomic_add_return) || !defined(atomic_sub_return) || \ diff --git a/include/asm-generic/cmpxchg.h b/include/asm-generic/cmpxchg.h index 213ac6e..e0449af 100644 --- a/include/asm-generic/cmpxchg.h +++ b/include/asm-generic/cmpxchg.h @@ -10,6 +10,8 @@ #error "Cannot use generic cmpxchg on SMP" #endif +#include + /* * Atomic compare and exchange. * diff --git a/include/asm-generic/system.h b/include/asm-generic/system.h index 215efa7..82cb53a 100644 --- a/include/asm-generic/system.h +++ b/include/asm-generic/system.h @@ -19,7 +19,6 @@ #include #include -#include #include struct task_struct;