summaryrefslogtreecommitdiffstats
path: root/sys/xfs
diff options
context:
space:
mode:
authorpyr <pyr@openbsd.org>2007-05-28 22:17:21 +0000
committerpyr <pyr@openbsd.org>2007-05-28 22:17:21 +0000
commit545205ea60988adfadc7a8d2f6039b3b232d45d3 (patch)
tree21a2eb74a2694504ad4ff6c10303af2bd4a8ca22 /sys/xfs
parentcreate and populate a section on hardware monitoring sensors (diff)
downloadwireguard-openbsd-545205ea60988adfadc7a8d2f6039b3b232d45d3.tar.xz
wireguard-openbsd-545205ea60988adfadc7a8d2f6039b3b232d45d3.zip
avoid bypassing sys/queue.h in many places in the kernel.
many assumptions were made about the way the various list types are implemented. lots of suggestions and help from otto and miod. ok otto@
Diffstat (limited to 'sys/xfs')
-rw-r--r--sys/xfs/xfs_node-bsd.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/xfs/xfs_node-bsd.c b/sys/xfs/xfs_node-bsd.c
index d5440f5635f..306abdc970d 100644
--- a/sys/xfs/xfs_node-bsd.c
+++ b/sys/xfs/xfs_node-bsd.c
@@ -31,6 +31,7 @@
* SUCH DAMAGE.
*/
+#include <sys/queue.h>
#include <xfs/xfs_locl.h>
#include <xfs/xfs_common.h>
#include <xfs/xfs_fs.h>
@@ -275,13 +276,6 @@ free_all_xfs_nodes(struct xfs *xfsp, int flags, int unmountp)
return error;
}
-#ifndef LIST_FOREACH
-#define LIST_FOREACH(var, head, field) \
- for ((var) = ((head)->lh_first); \
- (var); \
- (var) = ((var)->field.le_next))
-#endif
-
void
vattr2xfs_attr(const struct vattr *va, struct xfs_attr *xa)
{