From d5fa53d4a2072b7c8a2a8516ae54eaed62e5c540 Mon Sep 17 00:00:00 2001 From: Hiten Pandya Date: Mon, 24 May 2004 07:25:36 +0000 Subject: [PATCH] Wrap the VM MAP locking routines with _KERNEL, user-land has no business with them. This fixes quite a lot of sysutil/ ports indirectly, because they include which ends up including . --- sys/vm/vm_map.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/vm/vm_map.h b/sys/vm/vm_map.h index 7586c87753..8c071e3018 100644 --- a/sys/vm/vm_map.h +++ b/sys/vm/vm_map.h @@ -62,7 +62,7 @@ * rights to redistribute these changes. * * $FreeBSD: src/sys/vm/vm_map.h,v 1.54.2.5 2003/01/13 22:51:17 dillon Exp $ - * $DragonFly: src/sys/vm/vm_map.h,v 1.13 2004/03/12 23:09:37 dillon Exp $ + * $DragonFly: src/sys/vm/vm_map.h,v 1.14 2004/05/24 07:25:36 hmp Exp $ */ /* @@ -248,6 +248,7 @@ struct vmresident { int vr_id; /* registration id */ }; +#ifdef _KERNEL /* * Macros: vm_map_lock, etc. * Function: @@ -351,6 +352,8 @@ _vm_map_lock_upgrade(vm_map_t map, struct thread *td) { lwkt_reltoken(&ilock); \ } while(0) +#endif /* _KERNEL */ + /* * Functions implemented as macros */ -- 2.41.0