[Devel] [PATCH vz10 04/15] selftests/epoll: remove unused variable 'pfd' in epoll59 test

Vasileios Almpanis vasileios.almpanis at virtuozzo.com
Mon Mar 30 11:25:36 MSK 2026


Reviewed-by: Vasileios Almpanis <vasileios.almpanis at virtuozzo.com>

On 3/23/26 9:31 PM, Konstantin Khorenko wrote:
>    epoll_wakeup_test.c: In function 'epoll59':
>    epoll_wakeup_test.c:3121:23: warning: unused variable 'pfd' [-Wunused-variable]
>     3121 |         struct pollfd pfd;
>          |                       ^~~
>
> Remove unused 'struct pollfd pfd' to fix -Wunused-variable warning.
>
> https://virtuozzo.atlassian.net/browse/VSTOR-127529
> Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
>
> Feature: fix selftests
> ---
>   tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c | 1 -
>   1 file changed, 1 deletion(-)
>
> diff --git a/tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c b/tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
> index 65ede506305c..92adad836b57 100644
> --- a/tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
> +++ b/tools/testing/selftests/filesystems/epoll/epoll_wakeup_test.c
> @@ -3118,7 +3118,6 @@ static void *epoll59_thread(void *ctx_)
>   TEST(epoll59)
>   {
>   	pthread_t emitter;
> -	struct pollfd pfd;
>   	struct epoll_event e;
>   	struct epoll_mtcontext ctx = { 0 };
>   	int i, ret;


More information about the Devel mailing list