OSDN Git Service

io_uring: add BUILD_BUG_ON() to assert the layout of struct io_uring_sqe
authorStefan Metzmacher <metze@samba.org>
Wed, 29 Jan 2020 13:39:41 +0000 (14:39 +0100)
committerJens Axboe <axboe@kernel.dk>
Thu, 30 Jan 2020 19:40:37 +0000 (12:40 -0700)
commitd7f62e825fd19202a0749d10fb439714c51f67d2
tree6fbe64b86ea2953b28059a6d762d890d7f67dd29
parent87ce955b24c9940cb2ca7e5173fcf175578d9fe9
io_uring: add BUILD_BUG_ON() to assert the layout of struct io_uring_sqe

With nesting of anonymous unions and structs it's hard to
review layout changes. It's better to ask the compiler
for these things.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c