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

From: Jens Axboe
Date: Tue Oct 19 2021 - 11:50:36 EST


On Tue, 19 Oct 2021 17:34:53 +0200, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
>
> 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