aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/vfs_lookup.c
diff options
context:
space:
mode:
authorMatt Macy <mmacy@FreeBSD.org>2018-05-19 04:59:39 +0000
committerMatt Macy <mmacy@FreeBSD.org>2018-05-19 04:59:39 +0000
commit84482abd211d3c5a47db601f967f4b052aa5c240 (patch)
tree401e1bde7780a9781c083ac6627204fa7ad10f94 /sys/kern/vfs_lookup.c
parent4a11ed71596ae2c62bcf1dc03cddec64a607345e (diff)
downloadsrc-84482abd211d3c5a47db601f967f4b052aa5c240.tar.gz
src-84482abd211d3c5a47db601f967f4b052aa5c240.zip
vfs: annotate variables only used by debug builds as __unused
Notes
Notes: svn path=/head/; revision=333852
Diffstat (limited to 'sys/kern/vfs_lookup.c')
-rw-r--r--sys/kern/vfs_lookup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c
index cc359444c091..cdfb84e42447 100644
--- a/sys/kern/vfs_lookup.c
+++ b/sys/kern/vfs_lookup.c
@@ -92,9 +92,9 @@ static int
crossmp_vop_lock1(struct vop_lock1_args *ap)
{
struct vnode *vp;
- struct lock *lk;
- const char *file;
- int flags, line;
+ struct lock *lk __unused;
+ const char *file __unused;
+ int flags, line __unused;
vp = ap->a_vp;
lk = vp->v_vnlock;
@@ -118,7 +118,7 @@ static int
crossmp_vop_unlock(struct vop_unlock_args *ap)
{
struct vnode *vp;
- struct lock *lk;
+ struct lock *lk __unused;
int flags;
vp = ap->a_vp;