Re: Six archs are missing atomic_inc_return()

From: Andrew Morton
Date: Thu Nov 18 2004 - 23:50:06 EST


Chuck Ebbert <76306.1226@xxxxxxxxxxxxxx> wrote:
>
> Six archs do not have the atomic_inc_return() macro as of 2.6.10-rc2:
>
> cris
> h8300
> m32r
> ppc
> ppc64
> s390

All of these architectures implement atomic_add_return(). So they all need

#define atomic_inc_return(v) atomic_add_return(1, v)

added to their atomic.h.

Wanna send a patch?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/