From owner-svn-src-head@freebsd.org Mon May 23 15:27:21 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D7D48B47112; Mon, 23 May 2016 15:27:21 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-ig0-x22b.google.com (mail-ig0-x22b.google.com [IPv6:2607:f8b0:4001:c05::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A1E8912A3; Mon, 23 May 2016 15:27:21 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by mail-ig0-x22b.google.com with SMTP id bi2so35538217igb.0; Mon, 23 May 2016 08:27:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=8HUi/Krffc5+KNutmRGQwQZZAOgj0XdsyYq3ZMxTfhU=; b=NEr+5FJ+zZzvTdKiJGoIVb9C5Vm3EyLXjz7tTrdDon3ouQfxu9klEX9djCvxczbdOc 94raYj29ioWtyhLCfXuZvQF/0SThWyI/VIxfxYpdjycBhBugR+7JsfJnwKsDF/N3AUq8 ZYlSICPd9O+Mk46c/mrXc6jfgL7TQLKq6thrNL2ckW84wd63zu3QEpFiuCw9FINsJj8I mybCev1GpuZLUI9sQPjcIHoliVkuvOlDcSSq40Q2qSF1weibWcdtPgN0PRNENn1wsB00 w5DtJTZ2FqLCyDd7MEMse2XabDxa1w1cvXda8Gl8kT6LMgorE1LKcTwIBODis6dGw9rT xosQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=8HUi/Krffc5+KNutmRGQwQZZAOgj0XdsyYq3ZMxTfhU=; b=OdqWltCBjfuzQcyLD1zy55qj3rd0aAJbfS45fufXAedf/S4r+oNYtB7sHrSxd78LTo qB6zIemVY756BI/GoFG6USze25hFEkOgQMOcjPYxCPG8Ourc7WM2mo1XckQtLRE2lGkV PT64cwoXVWgjjBoK9gkgUP7CffsZhWYHJiVBkka0rvuwVlgKYjByk3Yz2bbpfugCLrtM 1p96G1yVQLJskUjWJTsdhimmPH7+IJB1yq0wtB3GGR68AvSsC/EPpKnlPs4KbNycIeIJ 0fuonHl04XBTSDitYnio4I+nkAIdoe3vk3GlkkpGvTbpiC6GddmRjY5xIm+Evko71Oeq lEIg== X-Gm-Message-State: AOPr4FWII/6XplF/hOIGKrQsPpagOHRJ87HMLQs4l3tko+FfnlP/d0hLp9Hib8vCEepsOg== X-Received: by 10.50.79.130 with SMTP id j2mr13585976igx.89.1464017241008; Mon, 23 May 2016 08:27:21 -0700 (PDT) Received: from [192.168.20.14] (c-73-97-222-46.hsd1.wa.comcast.net. [73.97.222.46]) by smtp.gmail.com with ESMTPSA id w25sm653033ioi.1.2016.05.23.08.27.19 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 23 May 2016 08:27:19 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: svn commit: r300491 - head/sys/compat/linuxkpi/common/include/asm From: Ngie Cooper X-Mailer: iPhone Mail (13F69) In-Reply-To: <201605231144.u4NBikhD004954@repo.freebsd.org> Date: Mon, 23 May 2016 08:27:18 -0700 Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <0B789C60-3EF9-4553-BD19-3245B451FB0A@gmail.com> References: <201605231144.u4NBikhD004954@repo.freebsd.org> To: Hans Petter Selasky X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 May 2016 15:27:21 -0000 > On May 23, 2016, at 04:44, Hans Petter Selasky 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