From nobody Thu Feb 17 08:43:18 2022 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 44C4519D8E95; Thu, 17 Feb 2022 08:43:18 +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 4JzpJ61X8lz3pqm; Thu, 17 Feb 2022 08:43:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645087398; 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=vfM+D10XcJGf5Vquylj/YUKCZ1xl+R12AgjOSxhuJqo=; b=K4CwGeQgGa6rm8MssFfgTlBJLXjPbS/zCtcdRKK5ZaVBeJNqF/bEwXUHtcitiuQcdSG15j SVaYBqaBHwX5c4af8bW4eYZfEft6Utbl9njJes7p6Oz9FfYl0aCCiFGRRiEGdLpfoqKYSC wwLQJcPX7L3sYck6M3C7uPtO5GN1FaZYUNUDDVlFXdWuz/+32bLdWvZ/I1YWKgrw0YOzfT U017LnOZz4gJRdgwydZ4hFsgtbXC2dhIh7QLd8sgXLHkB9JZxffhrLHxRIIRLDia5Drfzi f/DtNnht6t5iZAi5cO0btxL+W0vtqwzrPumM/140mbXFiOil4klEEp6FRuIVxA== 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 1448326D06; Thu, 17 Feb 2022 08:43:18 +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 21H8hIjb045082; Thu, 17 Feb 2022 08:43:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21H8hI4p045081; Thu, 17 Feb 2022 08:43:18 GMT (envelope-from git) Date: Thu, 17 Feb 2022 08:43:18 GMT Message-Id: <202202170843.21H8hI4p045081@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: cb15ed7da2be - main - linuxkpi: Add __var_waitqueue 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: manu X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cb15ed7da2be02b108d732e41bb6e68febf93f90 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1645087398; 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=vfM+D10XcJGf5Vquylj/YUKCZ1xl+R12AgjOSxhuJqo=; b=prnlx+lWzE1sMtx9YTuzYYmO1oTutPjmm6qLW33sioB+IsTLpim1Xgik+JicoYXjGSn8k8 RgU9peU35tqBpqZbE++qU7GwXfF0SuN6cOaakjiLKwtqJHZrdnapRq0C+iZ1HsvmbYrUcd dR9TDG/nv0VkOV6UrvOJdwxknXzIcuwUF6rLRtqvjbVaogKUzguspRPEjyQzpXJRaExydA 8i5AUAJHMr0CZieYrVDcYrF/sKTOJ0CyT/eDkBsJdLjlW122KqKveFrXcXlt7IWQ7WptKb s/ryFxr+l/6l4qeLUMz286GMqAPuZJ4AMcJEyRn0qK48+NxVLkyMi+LYWU2wpQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1645087398; a=rsa-sha256; cv=none; b=PiKDWv6nYsWryCgFdLpTrJnCXmVc4Mf9OcjSMe5yrsN4UiLCyQByioWy7vS7tF/BDtIKNr UMr2UEaj6vXa46c+REeBkoIHurQ9qZP3BG4ZTio44valyF5opExkRqVqvCytddZCD8QkoT 2IMyLTitT0BA3LweBB8twDcgOYp2SJDNrzWdWJf5lSVaa/FnCi/1Bzk9UdrSz8DU3Xevkw 4GHWO9vuIzaHOOwZ/c1cSF9AXN0alQYpAlphyFqHewHEkjwYibsScCyaB9KsqiuIGwiSUm hTTDQJJyD8I749ZzTXKygelkeJYcY0KnpxXPQyAXYgZUgvJWWdQF8kUihedmKg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=cb15ed7da2be02b108d732e41bb6e68febf93f90 commit cb15ed7da2be02b108d732e41bb6e68febf93f90 Author: Emmanuel Vadot AuthorDate: 2022-02-11 10:33:59 +0000 Commit: Emmanuel Vadot CommitDate: 2022-02-17 08:30:27 +0000 linuxkpi: Add __var_waitqueue This returns the wait queue based on the object but in LinuxKPI we only have one waitqueue for this. Reviewed by: hselasky, bz MFC after: 2 weeks Sponsored by: Beckhoff Automation GmbH & Co. KG Differential Revision: https://reviews.freebsd.org/D34250 --- sys/compat/linuxkpi/common/include/linux/wait_bit.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/linux/wait_bit.h b/sys/compat/linuxkpi/common/include/linux/wait_bit.h index 17716583399f..66c1149da432 100644 --- a/sys/compat/linuxkpi/common/include/linux/wait_bit.h +++ b/sys/compat/linuxkpi/common/include/linux/wait_bit.h @@ -64,4 +64,10 @@ wake_up_var(void *var) wake_up(&linux_var_waitq); } +static inline wait_queue_head_t * +__var_waitqueue(void *p) +{ + return (&linux_var_waitq); +} + #endif /* __LINUXKPI_LINUX_WAITBIT_H__ */