t/io_uring: fix 64-bit cast on 32-bit archs
authorJens Axboe <axboe@kernel.dk>
Fri, 26 Aug 2022 13:52:54 +0000 (07:52 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 26 Aug 2022 13:52:54 +0000 (07:52 -0600)
commit9ce84fbd2c8eece4618c46312449210efaf8463c
treea40401380c7869064d5770019f6326e95f2e5335
parent7d04588a766308d5903f6cfe34ed72f6c7612d19
t/io_uring: fix 64-bit cast on 32-bit archs

gcc complains that:

t/io_uring.c: In function ‘init_io_pt’:
t/io_uring.c:618:52: error: left shift count >= width of type [-Werror=shift-count-overflow]
  618 |   sqe->user_data |= ((unsigned long)s->clock_index << 32);
      |                                                    ^~

we're shifting more than the size of the type. Cast to a 64-bit value
so that it'll work on 32-bit as well.

Fixes: 7d04588a7663 ("t/io_uring: add support for async-passthru")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/io_uring.c