From nobody Wed May 04 22:33:26 2022 X-Original-To: dev-commits-src-branches@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 40A571AAAFB4; Wed, 4 May 2022 22:33:27 +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 4Kts6v0bdwz4gVX; Wed, 4 May 2022 22:33:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651703607; 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=sp+8pOEue0SlaWJ8AwlgZLfFMP6YUaPGP2vVLOgu1HY=; b=hKlzZM9KIsoPpZbho1bkRpgm7QYF3bj72rLLgHTF8X74KIyUSQVGs615+l0IgzpXAxL6zx Mv6dOJCfdr5K+Q964S4Uoy0t5duZFSvuFKrpBxNZBEB1vLPHhwc70noJx0D5KaqDinPVyH puTAWuMg2IHWv/Mg0JwL2b7Slnj4cyD6peeSZnbzOlH12PqW/1HuRDasu9K96JcuI6M/oZ +1mEBFGoYIQR8nlPRpWLK19WG6BhiqK9ITBho+2q9ZTstK57SHu9loyVL72vOwHjoNFg9o PiKfR/fr1gMXd0Orym3ZPJnkt0i1Gv++WKJHhBDeprjPIl5WZXO6XM4lY8uDgg== 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 CCC6C1B75A; Wed, 4 May 2022 22:33:26 +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 244MXQV4015115; Wed, 4 May 2022 22:33:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 244MXQVx015114; Wed, 4 May 2022 22:33:26 GMT (envelope-from git) Date: Wed, 4 May 2022 22:33:26 GMT Message-Id: <202205042233.244MXQVx015114@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 249d205cb8d9 - stable/13 - subr_unit.c: make userspace tests buildable List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 249d205cb8d9eacee936fa15fadb034c8ea0f4ea Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651703607; 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=sp+8pOEue0SlaWJ8AwlgZLfFMP6YUaPGP2vVLOgu1HY=; b=hCuMjvIRGshRfZvzepPZILlce4kzCi3KkLWDsbkwoBsBXG1sE33Evss5d1bdQDOvbnxK7/ XwtdZhQnHgPHZvp8MY+SkfpXuh57ZJiSmFS+WCtmwKkUe5nIdA3R3QrTsAMhzmCGU7FGnl i4tm/JNOAfLtFoOZJvqJ3S89dRTAhENomcqw5TQ4hyD8I6dYWg3/Avs2FztxFXnQu76eO8 hII0shbUa8f9gXYFKIfJITPbr2h7buJYrago+B0A9tHzp7kNzvjF90B8pKlaGSw1XrJ7tm iHxp/QSLgidewWFIc/umPqD0Qsi/EAoW55NdzxTu+GgcnrrRElW9GF9z6J4/8g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651703607; a=rsa-sha256; cv=none; b=QplwyISqxaBvlleV5f3BdWwDZfsZOXYs4jrSVYRIzBSXtYAamRO/IqH5j7jC/zt+Om1dAQ qR7CyVl+enz3gM6kMUz9voIwi2csgRAFzOdc+zfrlzBxtf0NmoMCJrYs+/7JnECrV6FmH5 9cuG2UQpPZzgS6+2Lp4UMJBUaaq8d2H3SkgGPpoBL/XCAdX2TYRpy0ucnJzYCfSFhdgCtT xWtnKHEWdz3uGCJpMMZ34HQ598ncM2vH6PzhHOYmDzSkqFZc9I2MiqKP3Icr2QB1xnLUVS sHqIWkWJXV6Ag2HvhQqgfKEFoh9NqQhjBKL6d1zoX6+NjL2CV16Y/O1o16xQ3w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=249d205cb8d9eacee936fa15fadb034c8ea0f4ea commit 249d205cb8d9eacee936fa15fadb034c8ea0f4ea Author: Konstantin Belousov AuthorDate: 2022-04-28 00:00:14 +0000 Commit: Konstantin Belousov CommitDate: 2022-05-04 22:33:05 +0000 subr_unit.c: make userspace tests buildable (cherry picked from commit 6fe78ad434557a713ebf5159ac6ac4052ef3da1c) --- sys/kern/subr_unit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/kern/subr_unit.c b/sys/kern/subr_unit.c index 66314887ac39..8e5eb94711c3 100644 --- a/sys/kern/subr_unit.c +++ b/sys/kern/subr_unit.c @@ -143,6 +143,8 @@ _Malloc(size_t foo, int line) struct unrhdr; +#define UNR_NO_MTX ((void *)(uintptr_t)-1) + struct mtx { int state; } unitmtx;