aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include/linux/list.h
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2020-12-04 15:46:48 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2020-12-04 15:46:48 +0000
commit01fdacdbc772341553ba88e6eff8bba515003ccd (patch)
tree93c44658614f687fcf938239fa33521dd26a3b5e /sys/compat/linuxkpi/common/include/linux/list.h
parente62f770bcaeee5ee46481949b216d7e53dd6cbbf (diff)
Notes
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux/list.h')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/list.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/list.h b/sys/compat/linuxkpi/common/include/linux/list.h
index 8135aec85c22..1f3db8e43a08 100644
--- a/sys/compat/linuxkpi/common/include/linux/list.h
+++ b/sys/compat/linuxkpi/common/include/linux/list.h
@@ -31,8 +31,9 @@
#ifndef _LINUX_LIST_H_
#define _LINUX_LIST_H_
+#ifndef _STANDALONE
/*
- * Since LIST_HEAD conflicts with the linux definition we must include any
+ * Since LIST_HEAD conflicts with the Linux definition we must include any
* FreeBSD header which requires it here so it is resolved with the correct
* definition prior to the undef.
*/
@@ -69,10 +70,12 @@
#include <vm/vm.h>
#include <vm/vm_object.h>
#include <vm/pmap.h>
+#endif
#ifndef prefetch
#define prefetch(x)
#endif
+
#define LINUX_LIST_HEAD_INIT(name) { &(name), &(name) }
#define LINUX_LIST_HEAD(name) \