The patch titled atomich-add-atomic64-cmpxchg-xchg-and-add_unless-to-powerpc fix has been removed from the -mm tree. Its filename was atomich-add-atomic64-cmpxchg-xchg-and-add_unless-to-powerpc-fix.patch This patch was dropped because it was folded into atomich-add-atomic64-cmpxchg-xchg-and-add_unless-to-powerpc.patch ------------------------------------------------------ Subject: atomich-add-atomic64-cmpxchg-xchg-and-add_unless-to-powerpc fix From: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxx> Remove duplicated defines in asm-powerpc/atomic.h. atomic64_inc_not_zero and atomic64_xchg are defined twice. It also removes an unnecessary cast to the atomic_cmpxchg result, which is already done by system.h cmpxchg. Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxx> Cc: Paul Mackerras <paulus@xxxxxxxxx> Cc: Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/asm-powerpc/atomic.h | 10 ++-------- 1 files changed, 2 insertions(+), 8 deletions(-) diff -puN include/asm-powerpc/atomic.h~atomich-add-atomic64-cmpxchg-xchg-and-add_unless-to-powerpc-fix include/asm-powerpc/atomic.h --- a/include/asm-powerpc/atomic.h~atomich-add-atomic64-cmpxchg-xchg-and-add_unless-to-powerpc-fix +++ a/include/asm-powerpc/atomic.h @@ -165,8 +165,7 @@ static __inline__ int atomic_dec_return( return t; } -#define atomic_cmpxchg(v, o, n) \ - ((__typeof__((v)->counter))cmpxchg(&((v)->counter), (o), (n))) +#define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) #define atomic_xchg(v, new) (xchg(&((v)->counter), new)) /** @@ -414,12 +413,7 @@ static __inline__ long atomic64_dec_if_p return t; } -#define atomic64_cmpxchg(v, o, n) \ - ((__typeof__((v)->counter))cmpxchg(&((v)->counter), (o), (n))) -#define atomic64_xchg(v, new) (xchg(&((v)->counter), new)) - -#define atomic64_inc_not_zero(v) atomic64_add_unless((v), 1, 0) - +#define atomic64_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n))) #define atomic64_xchg(v, new) (xchg(&((v)->counter), new)) /** _ Patches currently in -mm which might be from mathieu.desnoyers@xxxxxxxxxx are origin.patch git-powerpc.patch ppc4xx_sgdma-needs-dma_mappingh.patch atomich-add-atomic64-cmpxchg-xchg-and-add_unless-to-alpha.patch atomich-complete-atomic_long-operations-in-asm-generic.patch atomich-i386-type-safety-fix.patch atomich-add-atomic64-cmpxchg-xchg-and-add_unless-to-ia64.patch atomich-add-atomic64-cmpxchg-xchg-and-add_unless-to-mips.patch atomich-add-atomic64-cmpxchg-xchg-and-add_unless-to-parisc.patch atomich-add-atomic64-cmpxchg-xchg-and-add_unless-to-powerpc.patch atomich-add-atomic64-cmpxchg-xchg-and-add_unless-to-powerpc-fix.patch atomich-add-atomic64-cmpxchg-xchg-and-add_unless-to-sparc64.patch atomich-add-atomic64-cmpxchg-xchg-and-add_unless-to-x86_64.patch atomich-atomic_add_unless-as-inline-remove-systemh-atomich-circular-dependency.patch local_t-architecture-independant-extension.patch local_t-alpha-extension.patch local_t-i386-extension.patch local_t-ia64-extension.patch local_t-mips-extension.patch local_t-parisc-cleanup.patch local_t-powerpc-extension.patch local_t-sparc64-cleanup.patch local_t-x86_64-extension.patch linux-kernel-markers-kconfig-menus.patch linux-kernel-markers-architecture-independant-code.patch linux-kernel-markers-architecture-independant-code-markers-document-the-linux-markerh-header.patch linux-kernel-markers-architecture-independant-code-markers-add-documentation-to-the-modulec-marker-functions.patch linux-kernel-markers-powerpc-optimization.patch linux-kernel-markers-powerpc-optimization-markers-changes-to-the-powerpc-marker-header.patch linux-kernel-markers-i386-optimization.patch linux-kernel-markers-i386-optimization-fix.patch linux-kernel-markers-i386-optimization-markers-document-the-i386-marker-header.patch markers-add-instrumentation-markers-menus-to-avr32.patch linux-kernel-markers-non-optimized-architectures.patch markers-alpha-and-avr32-supportadd-alpha-markerh-add-arm26-markerh.patch linux-kernel-markers-documentation.patch linux-kernel-markers-documentation-markers-update-documentation.patch linux-kernel-markers-documentation-fix-typo-and-use-array_size.patch markers-define-the-linker-macro-extra_rwdata.patch markers-use-extra_rwdata-in-architectures.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html