summaryrefslogtreecommitdiffstats
path: root/sys/compat/linux/linux_misc.c
diff options
context:
space:
mode:
authormpp <mpp@FreeBSD.org>1997-02-10 16:34:16 +0000
committermpp <mpp@FreeBSD.org>1997-02-10 16:34:16 +0000
commit7a838f1dcf524f73d23d0f3b05e07e8b020a5f2b (patch)
tree83c482ded6f37510de41d33658da99887a81a075 /sys/compat/linux/linux_misc.c
parent48a2c5729d1f00256a412383870ff7a81b8db8a5 (diff)
downloadFreeBSD-src-7a838f1dcf524f73d23d0f3b05e07e8b020a5f2b.zip
FreeBSD-src-7a838f1dcf524f73d23d0f3b05e07e8b020a5f2b.tar.gz
Make this compile again after the Lite2 merge.
VOP_UNLOCK was being called with the wrong mumber of arguments. Also silenced a -Wall warning.
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
-rw-r--r--sys/compat/linux/linux_misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index d0332cf..7e99f02 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -237,7 +237,7 @@ linux_uselib(struct proc *p, struct linux_uselib_args *args, int *retval)
/*
* Lock no longer needed
*/
- VOP_UNLOCK(vp, p);
+ VOP_UNLOCK(vp, 0, p);
locked = 0;
/*
@@ -392,7 +392,7 @@ cleanup:
* Unlock vnode if needed
*/
if (locked)
- VOP_UNLOCK(vp, p);
+ VOP_UNLOCK(vp, 0, p);
/*
* Release the kernel mapping.
OpenPOWER on IntegriCloud