Skip to content

register: fix unused parameter warnings#1564

Merged
axboe merged 2 commits intoaxboe:masterfrom
travisdowns:td-register-unused-params
Apr 1, 2026
Merged

register: fix unused parameter warnings#1564
axboe merged 2 commits intoaxboe:masterfrom
travisdowns:td-register-unused-params

Conversation

@travisdowns
Copy link
Copy Markdown
Contributor

@travisdowns travisdowns commented Apr 1, 2026

Summary

  • Mark all parameters in the io_uring_register_wait_reg stub as __maybe_unused to suppress -Wunused-parameter warnings (the function just returns -EINVAL).
  • Remove a spurious __maybe_unused on the flags parameter of io_uring_register_buf_ring, which was originally unused, but today is used unconditionally.

travisdowns added a commit to travisdowns/bazel-central-registry that referenced this pull request Apr 1, 2026
Upstream liburing has unused parameters in register.c that trigger
-Wunused-parameter from -Wextra. A fix is pending upstream
(axboe/liburing#1564) but for this release
we suppress the warning with -Wno-unused-parameter.
@axboe
Copy link
Copy Markdown
Owner

axboe commented Apr 1, 2026

Change looks good, but you're missing a Signed-off-by in the commit messages.

travisdowns added a commit to travisdowns/bazel-central-registry that referenced this pull request Apr 1, 2026
Upstream liburing has unused parameters in register.c that trigger
-Wunused-parameter from -Wextra. A fix is pending upstream
(axboe/liburing#1564) but for this release
we suppress the warning with -Wno-unused-parameter.
io_uring_register_wait_reg is a stub returning -EINVAL, so mark
its parameters __maybe_unused to avoid -Wunused-parameter warnings.

Signed-off-by: Travis Downs <travis.downs@redpanda.com>
The flags parameter is used on the next line, so the annotation
is unnecessary.

Signed-off-by: Travis Downs <travis.downs@redpanda.com>
@travisdowns travisdowns force-pushed the td-register-unused-params branch from d074b3d to 2a50814 Compare April 1, 2026 19:28
@travisdowns
Copy link
Copy Markdown
Contributor Author

@axboe wrote:

Change looks good, but you're missing a Signed-off-by in the commit messages.

Oops! Fixed in force push.

@axboe axboe merged commit 05513e1 into axboe:master Apr 1, 2026
20 checks passed
@axboe
Copy link
Copy Markdown
Owner

axboe commented Apr 1, 2026

Thanks!

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.

2 participants