git: 6fe78ad43455 - main - subr_unit.c: make userspace tests buildable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 28 Apr 2022 00:49:07 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=6fe78ad434557a713ebf5159ac6ac4052ef3da1c
commit 6fe78ad434557a713ebf5159ac6ac4052ef3da1c
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2022-04-28 00:00:14 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
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;