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>
Mon, 15 Apr 2024 14:10:26 +0000 (08:10 -0600)
commit0f21a9574b1d04afbf818a3e6a60cb95eb04a616
treec58cf3e23b6150b7d5ebeb94b90c5764e3bef2f6
parent22537c9f79417fed70b352d54d01d2586fee9521
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