Re: [PATCH] Fix minor MIPS compile issue

Mathieu Desnoyers <[email protected]>
Newsgroups gmane.linux.kernel.tracing
Message-ID <20061109192559.GA11330@Krystal>
Hello,

It seems to be already corrected in LTTng 0.6.29, where the atomic_up are moved
to atomic-up.h. Thanks for reporting.

Mathieu

* Manish Lachwani ([email protected]) wrote:
> Hi!
> 
> I noticed a minor compile issue on MIPS. Attached patch
> fixes it.
> 
> thanks,
> Manish Lachwani

> Index: linux-2.6.18/include/asm-mips/atomic.h
> ===================================================================
> --- linux-2.6.18.orig/include/asm-mips/atomic.h
> +++ linux-2.6.18/include/asm-mips/atomic.h
> @@ -339,6 +339,7 @@ static __inline__ int atomic_sub_if_posi
>  #define atomic_dec_return(v) atomic_sub_return(1,(v))
>  #define atomic_inc_return(v) atomic_add_return(1,(v))
>  
> +#define atomic_up_add	atomic_add
>  #define atomic_up_add_unless atomic_add_unless
>  #define atomic_up_inc_not_zero atomic_inc_not_zero
>  #define atomic_up_dec_return atomic_dec_return

OpenPGP public key:              http://krystal.dyndns.org:8080/key/compudj.gpg
Key fingerprint:     8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.