From nobody Thu Apr 28 00:49:07 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 96F731993951; Thu, 28 Apr 2022 00:49:07 +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 4KpcSg3qYNz4p67; Thu, 28 Apr 2022 00:49:07 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651106947; 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=Q9UhVrwk+4zUg/IrPD5wDn3Z786ujM1aLDP8uSaXNuk=; b=CACiQeUb+tlP4ug3fFZbWCDFq7S9v5ZFqvIUsWZAomceqaNViUb5G5JW8OwysEYT9WGhZ+ 8sqUWB2pjHAJtCQC4iLrUVaPnC+9GDSPtcuKzp/gXZqRjdptL8EMjaAVxJ99ICdz5TWj1J 7Wbx3TdDFIkUAKnuiNIF1iENoYKHHi0WuDSjm9wvkY8irWgXY4La3S5VrnLJK5RzZ6Rjmf fFEuA+TrAlSyJFZXOzHv8fuCD29rW/1HJd/orviGXeFePAPwTNNoX7cQDz+DjQi8Hcxfxk FPOyB4NZMqbHYaEoaAvgHJzVoetz92zc3oINqPPPt6LaBly0oMUVXuHtfGGINg== 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 5F9A06767; Thu, 28 Apr 2022 00:49:07 +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 23S0n78C081092; Thu, 28 Apr 2022 00:49:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23S0n7i5081091; Thu, 28 Apr 2022 00:49:07 GMT (envelope-from git) Date: Thu, 28 Apr 2022 00:49:07 GMT Message-Id: <202204280049.23S0n7i5081091@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 6fe78ad43455 - main - subr_unit.c: make userspace tests buildable 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6fe78ad434557a713ebf5159ac6ac4052ef3da1c Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651106947; 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=Q9UhVrwk+4zUg/IrPD5wDn3Z786ujM1aLDP8uSaXNuk=; b=XR2XATsJDJIUuXj948oMPhu3z4uS8dhdf3/r6QbjioSceWkgRmz2A1P8Kt2cthwZqE+tSM JnDJKY0d+969AfssenWmf+hLhmiXkqo/3E7ar9zc0i5SbmvgB5pjCaaW7o5p18pfyMXS0n +gAXEOUuOmYfRD89cz68rK15vYyA3o9Z3JRFOAH/YtiVE64uvOG6ibqE6u76FYgwCq0uru 5elDBPNgFeSCSE+lg8+LCckC7huxcYbzpvkI/anElCA/KEUQNCzb3zfyh8YqjwYwOYtNxt v/SS67xWsalenU1QnQ4DzZiuyo2y8Gp/lYchsCI0jVkWe3eRgjl0wEB8SylCsA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651106947; a=rsa-sha256; cv=none; b=adYHT2BxQfo8Ixz9MRUyJjtMmBA3FM0+8+npIkO6Tyz4JrmhlSJjimLisLfrpyDEMEEp5T XA5a5kCs/UBusn2YTzwoXzNEAmAAXq30D+la8XjDX/Jqoe6BXyud3/k/3Y0JsVTp6z10KY novon3WvCIom/ZcPHNg+geSM5eTUlNGlNkoPFAMLSBvRrEzfB86y7e33FtlWt7fz3SqidT QhwrKbf+BEPQbjqiv6JpuQeBdjrGlAfxb9rmkp6bMEXcYi8p29YsqqRfGJ4/pY5qXsPttf O9vNlmKkt+8qlQnSjTjKTUpzBtiNhq5wF8h652BO9pjE0Yi2A7PiTnVfKWV6AA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=6fe78ad434557a713ebf5159ac6ac4052ef3da1c commit 6fe78ad434557a713ebf5159ac6ac4052ef3da1c Author: Konstantin Belousov AuthorDate: 2022-04-28 00:00:14 +0000 Commit: Konstantin Belousov CommitDate: 2022-04-28 00:00:14 +0000 subr_unit.c: make userspace tests buildable by defining a placeholder for UNR_NO_MTX Sponsored by: The FreeBSD Foundation MFC after: 1 week --- 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;