git: 249d205cb8d9 - stable/13 - subr_unit.c: make userspace tests buildable
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 04 May 2022 22:33:26 UTC
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;