aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2021-03-18 22:23:15 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2021-03-24 22:19:34 +0000
commitde8a7cc703f1d3eab293d53fbc8269e1aca3a6ab (patch)
tree3d1a3f90f4780c87eda8e9c3ef2dd68e0e364a19
parentaf7d9f8e31c4c185f277b27059e470ec8a5627a7 (diff)
downloadsrc-de8a7cc703f1d3eab293d53fbc8269e1aca3a6ab.tar.gz
src-de8a7cc703f1d3eab293d53fbc8269e1aca3a6ab.zip
linuxkpi: add ieee80211_node.h to headers to include before LIST_HEAD
ieee80211_node.h uses LIST_HEAD() which LinuxKPI redefines and this can lead to problems (see comment there). Make sure the net80211 header file is handled correctly by adding it to the list of files to include before re-defining the macro. Also add header files needed as dependencies. Sponsored-by: The FreeBSD Foundation MFC-after: 2 weeks Reviewed-by: philip, hselasky Differential Revision: https://reviews.freebsd.org/D29336
-rw-r--r--sys/compat/linuxkpi/common/include/linux/list.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/list.h b/sys/compat/linuxkpi/common/include/linux/list.h
index 1f3db8e43a08..37b5b751d21b 100644
--- a/sys/compat/linuxkpi/common/include/linux/list.h
+++ b/sys/compat/linuxkpi/common/include/linux/list.h
@@ -53,6 +53,7 @@
#include <sys/mbuf.h>
#include <net/bpf.h>
+#include <net/ethernet.h>
#include <net/if.h>
#include <net/if_var.h>
#include <net/if_types.h>
@@ -67,6 +68,10 @@
#include <netinet6/in6_var.h>
#include <netinet6/nd6.h>
+#include <net80211/ieee80211.h>
+#include <net80211/ieee80211_var.h>
+#include <net80211/ieee80211_node.h>
+
#include <vm/vm.h>
#include <vm/vm_object.h>
#include <vm/pmap.h>