diff options
author | Jens Axboe <axboe@kernel.dk> | 2022-04-09 09:27:07 -0600 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2022-04-09 09:27:07 -0600 |
commit | 52dcdbba35c828d425ce5a0b5228b0584f588fbb (patch) | |
tree | e372888f5a1dd184530d9bc006a6251310547724 | |
parent | 706bd23d05bd656ba0aca5974ebcb03d7610e6e9 (diff) | |
download | liburing-52dcdbba35c828d425ce5a0b5228b0584f588fbb.tar.gz liburing-52dcdbba35c828d425ce5a0b5228b0584f588fbb.tar.bz2 |
src/queue: protect io_uring_get_sqe() with LIBURING_INTERNAL
This isn't important to liburing itself, but may be to users that do
odd things like include this file. And it makes it consistent with
the exported header.
Fixes: https://github.com/axboe/liburing/issues/560
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | src/queue.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/queue.c b/src/queue.c index 2f85756..856d270 100644 --- a/src/queue.c +++ b/src/queue.c @@ -388,10 +388,12 @@ int io_uring_submit_and_wait(struct io_uring *ring, unsigned wait_nr) return __io_uring_submit_and_wait(ring, wait_nr); } +#ifdef LIBURING_INTERNAL struct io_uring_sqe *io_uring_get_sqe(struct io_uring *ring) { return _io_uring_get_sqe(ring); } +#endif int __io_uring_sqring_wait(struct io_uring *ring) { |