Date: Wed, 8 Mar 2023 20:50:08 GMT From: Joerg Wunsch <joerg@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: b0484678d405 - main - dpaa2_mc.c: unbreak by adding <sys/lock.h> Message-ID: <202303082050.328Ko8hR076713@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by joerg: URL: https://cgit.FreeBSD.org/src/commit/?id=b0484678d405722f40278e93cdebe95829c71f3b commit b0484678d405722f40278e93cdebe95829c71f3b Author: Joerg Wunsch <joerg@FreeBSD.org> AuthorDate: 2023-03-08 20:48:14 +0000 Commit: Joerg Wunsch <joerg@FreeBSD.org> CommitDate: 2023-03-08 20:50:01 +0000 dpaa2_mc.c: unbreak by adding <sys/lock.h> When compiling current on arm64, it breaks since LA_UNLOCKED is undefined. This was in turn caused by the mutex code aliasing it as MA_NOTOWNED. Add <sys/lock.h> so the macro is defined. --- sys/dev/dpaa2/dpaa2_mc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/dpaa2/dpaa2_mc.c b/sys/dev/dpaa2/dpaa2_mc.c index e895d2585a3a..d68707715c65 100644 --- a/sys/dev/dpaa2/dpaa2_mc.c +++ b/sys/dev/dpaa2/dpaa2_mc.c @@ -43,6 +43,7 @@ __FBSDID("$FreeBSD$"); #include <sys/kernel.h> #include <sys/bus.h> #include <sys/rman.h> +#include <sys/lock.h> #include <sys/module.h> #include <sys/malloc.h> #include <sys/mutex.h>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303082050.328Ko8hR076713>