Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 May 2022 22:33:26 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 249d205cb8d9 - stable/13 - subr_unit.c: make userspace tests buildable
Message-ID:  <202205042233.244MXQVx015114@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=249d205cb8d9eacee936fa15fadb034c8ea0f4ea

commit 249d205cb8d9eacee936fa15fadb034c8ea0f4ea
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2022-04-28 00:00:14 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202205042233.244MXQVx015114>