Skip to content

[GIT PULL] man page and build warning fixes#689

Merged
axboe merged 3 commits into
axboe:masterfrom
ammarfaizi2:liburing-fixes-2022-10-19
Oct 18, 2022
Merged

[GIT PULL] man page and build warning fixes#689
axboe merged 3 commits into
axboe:masterfrom
ammarfaizi2:liburing-fixes-2022-10-19

Conversation

@ammarfaizi2

Copy link
Copy Markdown
Contributor

Hi Jens,

  • Fix the wrong return type in io_uring_buf_ring_advance
    and io_uring_buf_ring_cq_advance man page (Alviro)

  • Clean up a build warning when compiling with clang v13.0.1 (me)

Please pull!

The following changes since commit 409ad09c69a003a4cc69f690155023ecec9999b7:

  Merge branch 'master' of https://github.com/ilikdoge/liburing (2022-10-17 15:57:12 -0700)

are available in the Git repository at:

  https://github.com/ammarfaizi2/liburing tags/liburing-fixes-2022-10-19

for you to fetch changes up to 877d41862ac111fdd85344804c4d656ac7267c93:

  test/helpers: Fix clang warning (2022-10-19 04:46:03 +0700)

----------------------------------------------------------------
liburing-fixes-2022-10-19

----------------------------------------------------------------
Alviro Iskandar Setiawan (2):
      man/io_uring_buf_ring_advance.3: Fix return type
      man/io_uring_buf_ring_cq_advance.3: Fix return type

Ammar Faizi (1):
      test/helpers: Fix clang warning

 man/io_uring_buf_ring_advance.3    | 4 ++--
 man/io_uring_buf_ring_cq_advance.3 | 6 +++---
 test/helpers.h                     | 1 +
 3 files changed, 6 insertions(+), 5 deletions(-)

alviroiskandar and others added 3 commits October 19, 2022 04:39
This function doesn't return anything, the return type should be void.

Fixes: f01ed8b ("Add man pages for shared provided buffer rings")
Signed-off-by: Alviro Iskandar Setiawan <alviro.iskandar@gnuweeb.org>
Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org>
This function doesn't return anything, the return type should be void.

Fixes: f01ed8b ("Add man pages for shared provided buffer rings")
Signed-off-by: Alviro Iskandar Setiawan <alviro.iskandar@gnuweeb.org>
Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org>
Building with clang v13.0.1 yields the following warning:

  ./helpers.h:29:42: warning: declaration of 'struct sockaddr_in' \
  will not be visible outside of this function [-Wvisibility]

  int t_bind_ephemeral_port(int fd, struct sockaddr_in *addr);
                                           ^
This is because at that point struct sockaddr_in has not been
declared yet. Fix this by including <arpa/inet> in helpers.h.

Fixes: 0a2d0af ("test/helpers: Add `t_bind_ephemeral_port()` function")
Signed-off-by: Ammar Faizi <ammarfaizi2@gnuweeb.org>
@axboe
axboe merged commit 13f3fe3 into axboe:master Oct 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants