diff options
| author | Matt Macy <mmacy@FreeBSD.org> | 2018-05-19 04:59:39 +0000 |
|---|---|---|
| committer | Matt Macy <mmacy@FreeBSD.org> | 2018-05-19 04:59:39 +0000 |
| commit | 84482abd211d3c5a47db601f967f4b052aa5c240 (patch) | |
| tree | 401e1bde7780a9781c083ac6627204fa7ad10f94 /sys | |
| parent | 4a11ed71596ae2c62bcf1dc03cddec64a607345e (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/kern/vfs_bio.c | 6 | ||||
| -rw-r--r-- | sys/kern/vfs_lookup.c | 8 | ||||
| -rw-r--r-- | sys/kern/vfs_subr.c | 2 |
3 files changed, 7 insertions, 9 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index f45a998bdb3e..eb4db4747f6c 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -1851,10 +1851,8 @@ bq_init(struct bufqueue *bq, int qindex, int subqueue, const char *lockname) static void bd_init(struct bufdomain *bd) { - int domain; int i; - domain = bd - bdomain; bd->bd_cleanq = &bd->bd_subq[mp_maxid + 1]; bq_init(bd->bd_cleanq, QUEUE_CLEAN, mp_maxid + 1, "bufq clean lock"); bq_init(&bd->bd_dirtyq, QUEUE_DIRTY, -1, "bufq dirty lock"); @@ -2843,7 +2841,7 @@ vfs_vmio_iodone(struct buf *bp) vm_ooffset_t foff; vm_page_t m; vm_object_t obj; - struct vnode *vp; + struct vnode *vp __unused; int i, iosize, resid; bool bogus; @@ -5014,7 +5012,7 @@ bufsync(struct bufobj *bo, int waitfor) void bufstrategy(struct bufobj *bo, struct buf *bp) { - int i = 0; + int i __unused; struct vnode *vp; vp = bp->b_vp; 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; diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 0f1bc60a62bf..055d3a828bf4 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1405,7 +1405,7 @@ getnewvnode(const char *tag, struct mount *mp, struct vop_vector *vops, struct thread *td; struct lock_object *lo; static int cyclecount; - int error; + int error __unused; CTR3(KTR_VFS, "%s: mp %p with tag %s", __func__, mp, tag); vp = NULL; |
