From ff4fb10201b583d02feb4bd88b2533ca2cf76eb2 Mon Sep 17 00:00:00 2001 From: Kirk McKusick Date: Fri, 3 Nov 1989 23:07:48 -0800 Subject: [PATCH] lint SCCS-vsn: sys/miscfs/specfs/spec_vnops.c 7.13 SCCS-vsn: sys/kern/vfs_subr.c 7.12 SCCS-vsn: sys/kern/vfs_syscalls.c 7.22 SCCS-vsn: sys/ufs/ffs/ffs_inode.c 7.17 SCCS-vsn: sys/ufs/ffs/ufs_inode.c 7.17 SCCS-vsn: sys/ufs/lfs/lfs_inode.c 7.17 SCCS-vsn: sys/ufs/ufs/ufs_inode.c 7.17 --- usr/src/sys/kern/vfs_subr.c | 5 ++--- usr/src/sys/kern/vfs_syscalls.c | 5 +++-- usr/src/sys/miscfs/specfs/spec_vnops.c | 4 +++- usr/src/sys/ufs/ffs/ffs_inode.c | 4 +++- usr/src/sys/ufs/ffs/ufs_inode.c | 4 +++- usr/src/sys/ufs/lfs/lfs_inode.c | 4 +++- usr/src/sys/ufs/ufs/ufs_inode.c | 4 +++- 7 files changed, 20 insertions(+), 10 deletions(-) diff --git a/usr/src/sys/kern/vfs_subr.c b/usr/src/sys/kern/vfs_subr.c index 941765122e..3223a5200f 100644 --- a/usr/src/sys/kern/vfs_subr.c +++ b/usr/src/sys/kern/vfs_subr.c @@ -14,7 +14,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * @(#)vfs_subr.c 7.11 (Berkeley) %G% + * @(#)vfs_subr.c 7.12 (Berkeley) %G% */ /* @@ -297,7 +297,6 @@ bdevvp(dev, vpp) dev_t dev; struct vnode **vpp; { - register struct inode *ip; register struct vnode *vp; struct vnode *nvp; int error; @@ -542,7 +541,7 @@ void vgone(vp) slp = speclisth; speclisth = slp->sl_next; } else { - for (slp = speclisth; slp; + for (pslp = speclisth, slp = pslp->sl_next; slp; pslp = slp, slp = slp->sl_next) { if (slp->sl_vp != vp) continue; diff --git a/usr/src/sys/kern/vfs_syscalls.c b/usr/src/sys/kern/vfs_syscalls.c index c7f6dad11f..cd2f748985 100644 --- a/usr/src/sys/kern/vfs_syscalls.c +++ b/usr/src/sys/kern/vfs_syscalls.c @@ -14,7 +14,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * @(#)vfs_syscalls.c 7.21 (Berkeley) %G% + * @(#)vfs_syscalls.c 7.22 (Berkeley) %G% */ #include "param.h" @@ -248,8 +248,9 @@ dounmount(mp, flags) * Sync system call. * Sync each mounted filesystem. */ +/* ARGSUSED */ sync(scp) - register struct syscontext *scp; + struct syscontext *scp; { register struct mount *mp; diff --git a/usr/src/sys/miscfs/specfs/spec_vnops.c b/usr/src/sys/miscfs/specfs/spec_vnops.c index cbd7b46cfe..7db46dc003 100644 --- a/usr/src/sys/miscfs/specfs/spec_vnops.c +++ b/usr/src/sys/miscfs/specfs/spec_vnops.c @@ -14,7 +14,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * @(#)spec_vnops.c 7.12 (Berkeley) %G% + * @(#)spec_vnops.c 7.13 (Berkeley) %G% */ #include "param.h" @@ -224,6 +224,7 @@ spec_strategy(bp) /* * At the moment we do not do any locking. */ +/* ARGSUSED */ spec_lock(vp) struct vnode *vp; { @@ -231,6 +232,7 @@ spec_lock(vp) return (0); } +/* ARGSUSED */ spec_unlock(vp) struct vnode *vp; { diff --git a/usr/src/sys/ufs/ffs/ffs_inode.c b/usr/src/sys/ufs/ffs/ffs_inode.c index 4c0b04f742..892eae371f 100644 --- a/usr/src/sys/ufs/ffs/ffs_inode.c +++ b/usr/src/sys/ufs/ffs/ffs_inode.c @@ -54,8 +54,10 @@ ufs_init() register int i; register union ihead *ih = ihead; +#ifndef lint if (VN_MAXPRIVATE < sizeof(struct inode)) panic("ihinit: too small"); +#endif /* not lint */ for (i = INOHSZ; --i >= 0; ih++) { ih->ih_head[0] = ih; ih->ih_head[1] = ih; @@ -270,7 +272,7 @@ ufs_inactive(vp) ufs_reclaim(vp) register struct vnode *vp; { - register struct inode *iq, *ip = VTOI(vp); + register struct inode *ip = VTOI(vp); if (vp->v_count != 0) printf("ufs_reclaim: pushing active ino %d dev 0x%x\n", diff --git a/usr/src/sys/ufs/ffs/ufs_inode.c b/usr/src/sys/ufs/ffs/ufs_inode.c index dbc1efb7ef..0f60b3cb19 100644 --- a/usr/src/sys/ufs/ffs/ufs_inode.c +++ b/usr/src/sys/ufs/ffs/ufs_inode.c @@ -54,8 +54,10 @@ ufs_init() register int i; register union ihead *ih = ihead; +#ifndef lint if (VN_MAXPRIVATE < sizeof(struct inode)) panic("ihinit: too small"); +#endif /* not lint */ for (i = INOHSZ; --i >= 0; ih++) { ih->ih_head[0] = ih; ih->ih_head[1] = ih; @@ -270,7 +272,7 @@ ufs_inactive(vp) ufs_reclaim(vp) register struct vnode *vp; { - register struct inode *iq, *ip = VTOI(vp); + register struct inode *ip = VTOI(vp); if (vp->v_count != 0) printf("ufs_reclaim: pushing active ino %d dev 0x%x\n", diff --git a/usr/src/sys/ufs/lfs/lfs_inode.c b/usr/src/sys/ufs/lfs/lfs_inode.c index 386aa3f65f..2a3ef3e049 100644 --- a/usr/src/sys/ufs/lfs/lfs_inode.c +++ b/usr/src/sys/ufs/lfs/lfs_inode.c @@ -54,8 +54,10 @@ ufs_init() register int i; register union ihead *ih = ihead; +#ifndef lint if (VN_MAXPRIVATE < sizeof(struct inode)) panic("ihinit: too small"); +#endif /* not lint */ for (i = INOHSZ; --i >= 0; ih++) { ih->ih_head[0] = ih; ih->ih_head[1] = ih; @@ -270,7 +272,7 @@ ufs_inactive(vp) ufs_reclaim(vp) register struct vnode *vp; { - register struct inode *iq, *ip = VTOI(vp); + register struct inode *ip = VTOI(vp); if (vp->v_count != 0) printf("ufs_reclaim: pushing active ino %d dev 0x%x\n", diff --git a/usr/src/sys/ufs/ufs/ufs_inode.c b/usr/src/sys/ufs/ufs/ufs_inode.c index dbc1efb7ef..0f60b3cb19 100644 --- a/usr/src/sys/ufs/ufs/ufs_inode.c +++ b/usr/src/sys/ufs/ufs/ufs_inode.c @@ -54,8 +54,10 @@ ufs_init() register int i; register union ihead *ih = ihead; +#ifndef lint if (VN_MAXPRIVATE < sizeof(struct inode)) panic("ihinit: too small"); +#endif /* not lint */ for (i = INOHSZ; --i >= 0; ih++) { ih->ih_head[0] = ih; ih->ih_head[1] = ih; @@ -270,7 +272,7 @@ ufs_inactive(vp) ufs_reclaim(vp) register struct vnode *vp; { - register struct inode *iq, *ip = VTOI(vp); + register struct inode *ip = VTOI(vp); if (vp->v_count != 0) printf("ufs_reclaim: pushing active ino %d dev 0x%x\n", -- 2.20.1