diff options
author | Ammar Faizi <[email protected]> | 2022-08-23 18:45:49 +0700 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2022-08-23 07:22:33 -0600 |
commit | e1d0c6d05afdcff01ace698edb3b8808db1dc066 (patch) | |
tree | fdb6b77e441321118fd1a56af68a13dcdebf2de6 | |
parent | c2fa700c5f7667800b6cfedcb9994eb5eb69e6cc (diff) |
io_uring: uapi: Add `extern "C"` in io_uring.h for liburing
Make it easy for liburing to integrate uapi header with the kernel.
Previously, when this header changes, the liburing side can't directly
copy this header file due to some small differences. Sync them.
Link: https://lore.kernel.org/io-uring/[email protected]
Cc: Bart Van Assche <[email protected]>
Cc: Dylan Yudaken <[email protected]>
Cc: Facebook Kernel Team <[email protected]>
Signed-off-by: Ammar Faizi <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
-rw-r--r-- | include/uapi/linux/io_uring.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/uapi/linux/io_uring.h b/include/uapi/linux/io_uring.h index 1463cfecb56b..9e0b5c8d92ce 100644 --- a/include/uapi/linux/io_uring.h +++ b/include/uapi/linux/io_uring.h @@ -12,6 +12,10 @@ #include <linux/types.h> #include <linux/time_types.h> +#ifdef __cplusplus +extern "C" { +#endif + /* * IO submission data structure (Submission Queue Entry) */ @@ -661,4 +665,8 @@ struct io_uring_recvmsg_out { __u32 flags; }; +#ifdef __cplusplus +} +#endif + #endif |