diff options
author | Jens Axboe <axboe@kernel.dk> | 2022-04-26 01:43:45 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-04-26 01:43:45 +0300 |
commit | 69cc1b6fa565993b62210f314614be166d902a54 (patch) | |
tree | e67d2bef11a65ebf22c68e49729ebaecc7a68e13 /include/linux/task_work.h | |
parent | 155bc9505dbd6613585abbf0be6466f1c21536c4 (diff) | |
download | linux-69cc1b6fa565993b62210f314614be166d902a54.tar.xz |
io_uring: fix compile warning for 32-bit builds
If IO_URING_SCM_ALL isn't set, as it would not be on 32-bit builds,
then we trigger a warning:
fs/io_uring.c: In function '__io_sqe_files_unregister':
fs/io_uring.c:8992:13: warning: unused variable 'i' [-Wunused-variable]
8992 | int i;
| ^
Move the ifdef up to include the 'i' variable declaration.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Fixes: 5e45690a1cb8 ("io_uring: store SCM state in io_fixed_file->file_ptr")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/task_work.h')
0 files changed, 0 insertions, 0 deletions