svn commit: r300491 - head/sys/compat/linuxkpi/common/include/asm
Ngie Cooper
yaneurabeya at gmail.com
Mon May 23 15:27:21 UTC 2016
> On May 23, 2016, at 04:44, Hans Petter Selasky <hselasky at FreeBSD.org> wrote:
>
> Author: hselasky
> Date: Mon May 23 11:44:46 2016
> New Revision: 300491
> URL: https://svnweb.freebsd.org/changeset/base/300491
>
> Log:
> Add support for atomic_long_inc_not_zero() to the LinuxKPI.
>
> Obtained from: kmacy @
> MFC after: 1 week
> Sponsored by: Mellanox Technologies
>
> Modified:
> head/sys/compat/linuxkpi/common/include/asm/atomic-long.h
>
> Modified: head/sys/compat/linuxkpi/common/include/asm/atomic-long.h
> ==============================================================================
> --- head/sys/compat/linuxkpi/common/include/asm/atomic-long.h Mon May 23 11:41:35 2016 (r300490)
> +++ head/sys/compat/linuxkpi/common/include/asm/atomic-long.h Mon May 23 11:44:46 2016 (r300491)
> @@ -41,6 +41,7 @@ typedef struct {
>
> #define atomic_long_add(i, v) atomic_long_add_return((i), (v))
> #define atomic_long_inc_return(v) atomic_long_add_return(1, (v))
> +#define atomic_long_inc_not_zero(v) atomic_long_inc_not_zero(v)
The same function name is used twice..? This seems a bit odd...
> static inline long
> atomic_long_add_return(long i, atomic_long_t *v)
>
More information about the svn-src-all
mailing list