summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-08-28 09:14:38 -0600
committerJens Axboe <axboe@kernel.dk>2020-08-28 09:14:38 -0600
commitdb83b0abd16bbd6b8f589a993e6f70d9812be6e3 (patch)
tree002dea71b408e7018993e4b4ef097386c0615ec2 /lib
parent065b0606366fe6dad1768295957d9cd56a098a70 (diff)
downloadfio-db83b0abd16bbd6b8f589a993e6f70d9812be6e3.tar.gz
fio-db83b0abd16bbd6b8f589a993e6f70d9812be6e3.tar.bz2
Use fallthrough attribute
Fio currently triggers a bunch of fall through errors on clang 10, since it doesn't work with the /* fall through */ method of indicating fallthrough. Normalize this a bit and use the correct compiler attribute for this. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'lib')
-rw-r--r--lib/lfsr.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/lfsr.c b/lib/lfsr.c
index 1ef6ebbf..a32e850a 100644
--- a/lib/lfsr.c
+++ b/lib/lfsr.c
@@ -88,37 +88,37 @@ static inline void __lfsr_next(struct fio_lfsr *fl, unsigned int spin)
*/
switch (spin) {
case 15: __LFSR_NEXT(fl, fl->last_val);
- /* fall through */
+ fallthrough;
case 14: __LFSR_NEXT(fl, fl->last_val);
- /* fall through */
+ fallthrough;
case 13: __LFSR_NEXT(fl, fl->last_val);
- /* fall through */
+ fallthrough;
case 12: __LFSR_NEXT(fl, fl->last_val);
- /* fall through */
+ fallthrough;
case 11: __LFSR_NEXT(fl, fl->last_val);
- /* fall through */
+ fallthrough;
case 10: __LFSR_NEXT(fl, fl->last_val);
- /* fall through */
+ fallthrough;
case 9: __LFSR_NEXT(fl, fl->last_val);
- /* fall through */
+ fallthrough;
case 8: __LFSR_NEXT(fl, fl->last_val);
- /* fall through */
+ fallthrough;
case 7: __LFSR_NEXT(fl, fl->last_val);
- /* fall through */
+ fallthrough;
case 6: __LFSR_NEXT(fl, fl->last_val);
- /* fall through */
+ fallthrough;
case 5: __LFSR_NEXT(fl, fl->last_val);
- /* fall through */
+ fallthrough;
case 4: __LFSR_NEXT(fl, fl->last_val);
- /* fall through */
+ fallthrough;
case 3: __LFSR_NEXT(fl, fl->last_val);
- /* fall through */
+ fallthrough;
case 2: __LFSR_NEXT(fl, fl->last_val);
- /* fall through */
+ fallthrough;
case 1: __LFSR_NEXT(fl, fl->last_val);
- /* fall through */
+ fallthrough;
case 0: __LFSR_NEXT(fl, fl->last_val);
- /* fall through */
+ fallthrough;
default: break;
}
}