Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 May 2016 08:27:18 -0700
From:      Ngie Cooper <yaneurabeya@gmail.com>
To:        Hans Petter Selasky <hselasky@FreeBSD.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r300491 - head/sys/compat/linuxkpi/common/include/asm
Message-ID:  <0B789C60-3EF9-4553-BD19-3245B451FB0A@gmail.com>
In-Reply-To: <201605231144.u4NBikhD004954@repo.freebsd.org>
References:  <201605231144.u4NBikhD004954@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

> On May 23, 2016, at 04:44, Hans Petter Selasky <hselasky@FreeBSD.org> wrot=
e:
>=20
> Author: hselasky
> Date: Mon May 23 11:44:46 2016
> New Revision: 300491
> URL: https://svnweb.freebsd.org/changeset/base/300491
>=20
> Log:
>  Add support for atomic_long_inc_not_zero() to the LinuxKPI.
>=20
>  Obtained from:    kmacy @
>  MFC after:    1 week
>  Sponsored by:    Mellanox Technologies
>=20
> Modified:
>  head/sys/compat/linuxkpi/common/include/asm/atomic-long.h
>=20
> Modified: head/sys/compat/linuxkpi/common/include/asm/atomic-long.h
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D
> --- head/sys/compat/linuxkpi/common/include/asm/atomic-long.h    Mon May 2=
3 11:41:35 2016    (r300490)
> +++ head/sys/compat/linuxkpi/common/include/asm/atomic-long.h    Mon May 2=
3 11:44:46 2016    (r300491)
> @@ -41,6 +41,7 @@ typedef struct {
>=20
> #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)
>=20



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0B789C60-3EF9-4553-BD19-3245B451FB0A>