Re: [PATCH] [v2] io_uring: warning about unused-but-set parameter

Jens Axboe
2021-10-19T15:50:37Z

On Tue, 19 Oct 2021 17:34:53 +0200, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> When enabling -Wunused warnings by building with W=1, I get an
> instance of the -Wunused-but-set-parameter warning in the io_uring code:
>
> fs/io_uring.c: In function 'io_queue_async_work':
> fs/io_uring.c:1445:61: error: parameter 'locked' set but not used [-Werror=unused-but-set-parameter]
> 1445 | static void io_queue_async_work(struct io_kiocb *req, bool *locked)
> | ~~~~~~^~~~~~
>
> [...]

Applied, thanks!

[1/1] io_uring: warning about unused-but-set parameter
commit: 00169246e6981752e53266c62d0ab0c827493634

Best regards,
--
Jens Axboe