io_uring: Avoid anonymous enums in io_uring uapi
authorGabriel Krisman Bertazi <krisman@suse.de>
Thu, 28 Mar 2024 21:09:35 +0000 (17:09 -0400)
committerJens Axboe <axboe@kernel.dk>
Thu, 28 Mar 2024 22:10:45 +0000 (16:10 -0600)
commit2c1b098239d277b21a006cc0c8009ad7bf1b6189
tree2b7f588830b93ef0f9bd152d4754711beedfdc3a
parent5b799fa796e38cdcfcc3cd87a9b9c803d6f0bb86
io_uring: Avoid anonymous enums in io_uring uapi

While valid C, anonymous enums confuse Cython (Python to C translator),
as reported by Ritesh (YoSTEALTH) [1] .  Since people rely on it when
building against liburing and we want to keep this header in sync with
the library version, let's name the existing enums in the uapi header.

[1] https://github.com/cython/cython/issues/3240

Signed-off-by: Gabriel Krisman Bertazi <krisman@suse.de>
Link: https://lore.kernel.org/r/20240328210935.25640-1-krisman@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/uapi/linux/io_uring.h