git: b0484678d405 - main - dpaa2_mc.c: unbreak by adding <sys/lock.h>
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 08 Mar 2023 20:50:08 UTC
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>