Date: Thu, 28 Apr 2022 00:49:07 GMT From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 6fe78ad43455 - main - subr_unit.c: make userspace tests buildable Message-ID: <202204280049.23S0n7i5081091@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202204280049.23S0n7i5081091>