From nobody Wed Jan 25 22:15:08 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4P2J712csMz3bbcj; Wed, 25 Jan 2023 22:15:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P2J711rdqz46d4; Wed, 25 Jan 2023 22:15:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674684909; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iNrYZ+EAoJ9C+uciyXr4Z5XM6LSx3qkpOQq6ycILubA=; b=QFXQC38XsRrqbN8afmsdbW9i8Z0v77uEnSEV/C6r81DMykqYWLa74GuDoKn7GFknd4hSix gae2EFOcPXEgegPFw/J0u4lrCs37+eaFSWU0G2Fl/qqprfYKUjKWH3FZKRdrENEHYWx7QC nyLyFhp/7ie25EjGoIGk474m0RDSpx8UHBoTXaUKI0KXAnEZvN0auynnGwyUON3Tf+GfeQ MBQd4zNfGFp+yuC7TVHDbZi69LvvfdyQUETuJ8kdQfGrTP/bY8q7x1hV//QvsFWXY0xacU OXdXZJ2NviYfz6JmqW6oSiKzGR3tb7/oW2CXGcZo6EMRxLH57Xyl3t/pUszukQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1674684909; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iNrYZ+EAoJ9C+uciyXr4Z5XM6LSx3qkpOQq6ycILubA=; b=gAzJ56cU7Bcqu/r9vk8O1EbGkE+yKNEkI4T+lBWwLXzvAs5T3Ie/t7OWAq00wlYxD/HAt3 UIfW4ljVyhjICnWbnZWpgmt7B48fn12vrVtfkouYhY4aEhxz5cBgfuDAFAFvWajXbXtdlB 7WMwhgWNJcWjigznCirXhIInprGo+3ilI/oDAkDtJmTWT0zfD2KwkHs9U/9Sp8SVGiAwQF 5JvThtaByyzxiwb0u+H1fsgMDa468jp/lwJgAXjQRiyk8RO0psKFaDIQpFtp9p8nceHb2/ 62j9FIEmXJ/039qc6oDOOZ7nzP350BMJlwr+fUOD7Q39oVB36fJak2Zr9/XaXg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1674684909; a=rsa-sha256; cv=none; b=ae1YOgJbiqQ25rSarKCNCbE6be7+jnMhAKFJ033xvSUxDI7LmgQy930XEuBkmlB8kjttVS EuTofQwuS1W4/8KbhoX2X4+PMDYErHGBvqPgnduktfgSl0mafBBi/ezOvFeD8uhghTRpHC vTXKJrbFdA/yzHYNxqUjTb+tBfI0TIfhhrtkrLdE0hvB9CYyoF9gALgqT+5H3Hq/mkmPdT DL6aFT1nCPvOD3WfiEgsb/blezf9Rc33bK2jzL1EBT3sLKliZdIIABOVTv7il7W+6z+3Mv /lHvtA/eKM9dmSffTwtDYCCdEqHhUYvhXTTH2lPce+aoLXyAG5eJegSaRiNEqw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4P2J710c0Mz15Y2; Wed, 25 Jan 2023 22:15:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30PMF8Zs064323; Wed, 25 Jan 2023 22:15:08 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30PMF8PM064322; Wed, 25 Jan 2023 22:15:08 GMT (envelope-from git) Date: Wed, 25 Jan 2023 22:15:08 GMT Message-Id: <202301252215.30PMF8PM064322@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: =?utf-8?Q?Jean-S=C3=A9bastien=20P=C3=A9dron?= Subject: git: b34cd67243c3 - main - linuxkpi: Add `seqcount_ww_mutex_t` in List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dumbbell X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b34cd67243c39ca55be40b3e7958f3ade290347c Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dumbbell (ports committer): URL: https://cgit.FreeBSD.org/src/commit/?id=b34cd67243c39ca55be40b3e7958f3ade290347c commit b34cd67243c39ca55be40b3e7958f3ade290347c Author: Jean-Sébastien Pédron AuthorDate: 2023-01-20 17:20:01 +0000 Commit: Jean-Sébastien Pédron CommitDate: 2023-01-25 21:50:38 +0000 linuxkpi: Add `seqcount_ww_mutex_t` in It is defined as a synonymous to `seqcount_mutex_t`. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D38152 --- sys/compat/linuxkpi/common/include/linux/seqlock.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/seqlock.h b/sys/compat/linuxkpi/common/include/linux/seqlock.h index 87a5136c1210..b6646f6d102e 100644 --- a/sys/compat/linuxkpi/common/include/linux/seqlock.h +++ b/sys/compat/linuxkpi/common/include/linux/seqlock.h @@ -53,6 +53,7 @@ struct seqcount_mutex { seqc_t seqc; }; typedef struct seqcount_mutex seqcount_mutex_t; +typedef struct seqcount_mutex seqcount_ww_mutex_t; static inline void __seqcount_init(struct seqcount *seqcount, const char *name __unused, @@ -68,6 +69,9 @@ seqcount_mutex_init(struct seqcount_mutex *seqcount, void *mutex __unused) seqcount->seqc = 0; } +#define seqcount_ww_mutex_init(seqcount, ww_mutex) \ + seqcount_mutex_init((seqcount), (ww_mutex)) + #define write_seqcount_begin(s) \ _Generic(*(s), \ struct seqcount: seqc_sleepable_write_begin, \