Skip to contentSkip to conversation

kernel/freebsd: fix module build on latest head

PATCH Applied Bruce Richardson 2 participants 2 messages Jun 6, 2019 – Jun 27, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel/freebsd: fix module build on latest head

Internal changes in the freebsd kernel have meant that additional includes are now necessary to build the kernel modules for DPDK. Tested with latest bsd HEAD revision.

Bugzilla ID: 282
Cc: [email protected]

---
 kernel/freebsd/contigmem/contigmem.c | 3 +++
 kernel/freebsd/nic_uio/nic_uio.c     | 1 +
 2 files changed, 4 insertions(+)
kernel/freebsd/contigmem/contigmem.c +3 -0
index 1715b5dc5..64e0a7fec 100644
@@ -13,10 +13,13 @@ __FBSDID("$FreeBSD$");
 #include <sys/malloc.h>
 #include <sys/module.h>
 #include <sys/proc.h>
+#include <sys/lock.h>
 #include <sys/rwlock.h>
+#include <sys/mutex.h>
 #include <sys/systm.h>
 #include <sys/sysctl.h>
 #include <sys/vmmeter.h>
+#include <sys/eventhandler.h>
 
 #include <machine/bus.h>
 
kernel/freebsd/nic_uio/nic_uio.c +1 -0
index 401b487e1..7a81694c9 100644
@@ -11,6 +11,7 @@ __FBSDID("$FreeBSD$");
 #include <sys/bus.h> /* structs, prototypes for pci bus stuff and DEVMETHOD */
 #include <sys/rman.h>
 #include <sys/systm.h>
+#include <sys/lock.h>
 #include <sys/rwlock.h>
 #include <sys/proc.h>
 
Signature · 1 line
2.21.0