vfs: annotate variables only used by debug builds as __unused
This commit is contained in:
parent
4a11ed7159
commit
84482abd21
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=333852
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user