summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2002-08-25 13:23:09 +0000
committercharnier <charnier@FreeBSD.org>2002-08-25 13:23:09 +0000
commit7dd9d470599f145845572ac1f0d4b621c19c1cdb (patch)
tree9d932320e38df05718ee72d760a4d0d204431b9b /sys/kern
parent4966efff7bc9071f04706819e62e1a291d22bcb2 (diff)
downloadFreeBSD-src-7dd9d470599f145845572ac1f0d4b621c19c1cdb.zip
FreeBSD-src-7dd9d470599f145845572ac1f0d4b621c19c1cdb.tar.gz
Replace various spelling with FALLTHROUGH which is lint()able
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_descrip.c2
-rw-r--r--sys/kern/kern_lock.c6
-rw-r--r--sys/kern/sys_process.c2
-rw-r--r--sys/kern/vfs_bio.c4
-rw-r--r--sys/kern/vfs_cluster.c6
-rw-r--r--sys/kern/vfs_subr.c2
-rw-r--r--sys/kern/vfs_vnops.c2
7 files changed, 12 insertions, 12 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index 37dc894..db4e4d4 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -349,7 +349,7 @@ fcntl(td, uap)
case F_SETLKW:
flg |= F_WAIT;
- /* Fall into F_SETLK */
+ /* FALLTHROUGH F_SETLK */
case F_SETLK:
if (fp->f_type != DTYPE_VNODE) {
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c
index 5189bb7..5705f83 100644
--- a/sys/kern/kern_lock.c
+++ b/sys/kern/kern_lock.c
@@ -272,7 +272,7 @@ debuglockmgr(lkp, flags, interlkp, td, name, file, line)
* An alternative would be to fail with EDEADLK.
*/
sharelock(lkp, 1);
- /* fall into downgrade */
+ /* FALLTHROUGH downgrade */
case LK_DOWNGRADE:
KASSERT(lkp->lk_lockholder == pid && lkp->lk_exclusivecount != 0,
@@ -298,7 +298,7 @@ debuglockmgr(lkp, flags, interlkp, td, name, file, line)
error = EBUSY;
break;
}
- /* fall into normal upgrade */
+ /* FALLTHROUGH normal upgrade */
case LK_UPGRADE:
/*
@@ -353,7 +353,7 @@ debuglockmgr(lkp, flags, interlkp, td, name, file, line)
if ( (lkp->lk_flags & (LK_SHARE_NONZERO|LK_WAIT_NONZERO)) ==
LK_WAIT_NONZERO)
wakeup((void *)lkp);
- /* fall into exclusive request */
+ /* FALLTHROUGH exclusive request */
case LK_EXCLUSIVE:
if (lkp->lk_lockholder == pid && pid != LK_KERNPROC) {
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c
index 54b2423..0ed7c08 100644
--- a/sys/kern/sys_process.c
+++ b/sys/kern/sys_process.c
@@ -584,7 +584,7 @@ ptrace(struct thread *td, struct ptrace_args *uap)
case PT_WRITE_I:
case PT_WRITE_D:
write = 1;
- /* fallthrough */
+ /* FALLTHROUGH */
case PT_READ_I:
case PT_READ_D:
PROC_UNLOCK(p);
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index e0d623c..7a7317a 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -1740,12 +1740,12 @@ restart:
nqindex = QUEUE_EMPTYKVA;
if ((nbp = TAILQ_FIRST(&bufqueues[QUEUE_EMPTYKVA])))
break;
- /* fall through */
+ /* FALLTHROUGH */
case QUEUE_EMPTYKVA:
nqindex = QUEUE_CLEAN;
if ((nbp = TAILQ_FIRST(&bufqueues[QUEUE_CLEAN])))
break;
- /* fall through */
+ /* FALLTHROUGH */
case QUEUE_CLEAN:
/*
* nbp is NULL.
diff --git a/sys/kern/vfs_cluster.c b/sys/kern/vfs_cluster.c
index 70d2e4e..5c5f0f0 100644
--- a/sys/kern/vfs_cluster.c
+++ b/sys/kern/vfs_cluster.c
@@ -597,12 +597,12 @@ cluster_wbuild_wb(struct vnode *vp, long size, daddr_t start_lbn, int len)
if (start_lbn < len)
break;
start_lbn -= len;
- /* fall through */
+ /* FALLTHROUGH */
case 1:
r = cluster_wbuild(vp, size, start_lbn, len);
- /* fall through */
+ /* FALLTHROUGH */
default:
- /* fall through */
+ /* FALLTHROUGH */
break;
}
return(r);
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index d74c12c..300f051 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -1761,7 +1761,7 @@ reassignbuf(bp, newvp)
delay = metadelay;
break;
}
- /* fall through */
+ /* FALLTHROUGH */
default:
delay = filedelay;
}
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
index 0c106be..8288b85 100644
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -757,7 +757,7 @@ vn_ioctl(fp, com, data, active_cred, td)
}
if (com == FIONBIO || com == FIOASYNC) /* XXX */
return (0); /* XXX */
- /* fall into ... */
+ /* FALLTHROUGH */
default:
#if 0
OpenPOWER on IntegriCloud