aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2022-10-18 05:38:40 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2022-10-18 05:38:40 +0000
commitd6eabdac2ef444b62aba186c793fbd5d4226b157 (patch)
tree73dcfa4e357bd587e2fcfec2ba4e7b807eda4a68
parent2782ed8f6cd3d7f59219a783bc7fa7bbfb1fe26f (diff)
downloadsrc-d6eabdac2ef444b62aba186c793fbd5d4226b157.tar.gz
src-d6eabdac2ef444b62aba186c793fbd5d4226b157.zip
dpaa2: fix build without WITNESS
Using mutex(9) requires including <sys/lock.h> per manual page. With WITNESS the header was cryptically included via dpaa_ni.h -> mbuf.h.
-rw-r--r--sys/dev/dpaa2/dpaa2_io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/dpaa2/dpaa2_io.c b/sys/dev/dpaa2/dpaa2_io.c
index 14b5fa31cbc9..e2b7992bfdb6 100644
--- a/sys/dev/dpaa2/dpaa2_io.c
+++ b/sys/dev/dpaa2/dpaa2_io.c
@@ -46,6 +46,7 @@ __FBSDID("$FreeBSD$");
#include <sys/rman.h>
#include <sys/module.h>
#include <sys/malloc.h>
+#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/_cpuset.h>
#include <sys/cpuset.h>