summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2022-03-30 17:31:36 -0600
committerJens Axboe <axboe@kernel.dk>2022-03-30 17:31:36 -0600
commit87933e32e356b15b85c6d9775d5e840994080a4f (patch)
tree5f321afbc1154348deae438f8be480c3f7f1d61c /lib
parent5e644771eb91e91dd0fa32f4b51f90c44853a2b1 (diff)
downloadfio-87933e32e356b15b85c6d9775d5e840994080a4f.tar.gz
fio-87933e32e356b15b85c6d9775d5e840994080a4f.tar.bz2
Rename 'fallthrough' attribute to 'fio_fallthrough'
fallthrough is reserved in C++, so this causes issues with C++ programs pulling in the fio.h -> compiler.h header. Rename it to something fio specific instead. 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 a32e850a..e86086c4 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);
- fallthrough;
+ fio_fallthrough;
case 14: __LFSR_NEXT(fl, fl->last_val);
- fallthrough;
+ fio_fallthrough;
case 13: __LFSR_NEXT(fl, fl->last_val);
- fallthrough;
+ fio_fallthrough;
case 12: __LFSR_NEXT(fl, fl->last_val);
- fallthrough;
+ fio_fallthrough;
case 11: __LFSR_NEXT(fl, fl->last_val);
- fallthrough;
+ fio_fallthrough;
case 10: __LFSR_NEXT(fl, fl->last_val);
- fallthrough;
+ fio_fallthrough;
case 9: __LFSR_NEXT(fl, fl->last_val);
- fallthrough;
+ fio_fallthrough;
case 8: __LFSR_NEXT(fl, fl->last_val);
- fallthrough;
+ fio_fallthrough;
case 7: __LFSR_NEXT(fl, fl->last_val);
- fallthrough;
+ fio_fallthrough;
case 6: __LFSR_NEXT(fl, fl->last_val);
- fallthrough;
+ fio_fallthrough;
case 5: __LFSR_NEXT(fl, fl->last_val);
- fallthrough;
+ fio_fallthrough;
case 4: __LFSR_NEXT(fl, fl->last_val);
- fallthrough;
+ fio_fallthrough;
case 3: __LFSR_NEXT(fl, fl->last_val);
- fallthrough;
+ fio_fallthrough;
case 2: __LFSR_NEXT(fl, fl->last_val);
- fallthrough;
+ fio_fallthrough;
case 1: __LFSR_NEXT(fl, fl->last_val);
- fallthrough;
+ fio_fallthrough;
case 0: __LFSR_NEXT(fl, fl->last_val);
- fallthrough;
+ fio_fallthrough;
default: break;
}
}