summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2024-11-02 10:02:24 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2024-11-02 10:02:24 +0000
commite5fbe6bf3dfd04c3a74eeb4005e5c976a2bd2eb0 (patch)
tree4447897ba372644acfaae0126b981dda84138ac8 /sys/kern
parenta8c23be6880c4a0849ad6732eb382629563e483b (diff)
Always use new_vmcmd() from exec_subr.c, remove the macro which
duplicated code with no benefit. ok mpi@ miod@ deraadt@
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/exec_subr.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/kern/exec_subr.c b/sys/kern/exec_subr.c
index 4ebca1b981d..9f4aea64a8f 100644
--- a/sys/kern/exec_subr.c
+++ b/sys/kern/exec_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec_subr.c,v 1.67 2024/04/02 08:39:16 deraadt Exp $ */
+/* $OpenBSD: exec_subr.c,v 1.68 2024/11/02 10:02:23 jsg Exp $ */
/* $NetBSD: exec_subr.c,v 1.9 1994/12/04 03:10:42 mycroft Exp $ */
/*
@@ -42,14 +42,11 @@
#include <uvm/uvm_extern.h>
-#ifdef DEBUG
/*
* new_vmcmd():
* create a new vmcmd structure and fill in its fields based
* on function call arguments. make sure objects ref'd by
* the vmcmd are 'held'.
- *
- * If not debugging, this is a macro, so it's expanded inline.
*/
void
@@ -71,7 +68,6 @@ new_vmcmd(struct exec_vmcmd_set *evsp,
vcp->ev_prot = prot;
vcp->ev_flags = flags;
}
-#endif /* DEBUG */
void
vmcmdset_extend(struct exec_vmcmd_set *evsp)