[Devel] [PATCH RHEL10 COMMIT] selftests/epoll: remove unused variable 'pfd' in epoll59 test

Konstantin Khorenko khorenko at virtuozzo.com
Tue Mar 31 23:33:48 MSK 2026


The commit is pushed to "branch-rh10-6.12.0-55.52.1.4.x.vz10-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh10-6.12.0-55.52.1.4.12.vz10
------>
commit 495f9408a0eecdc9ea179e061f4787360f826120
Author: Konstantin Khorenko <khorenko at virtuozzo.com>
Date:   Mon Mar 23 21:31:23 2026 +0100

    selftests/epoll: remove unused variable 'pfd' in epoll59 test
    
      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>
    Reviewed-by: Vasileios Almpanis <vasileios.almpanis 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 65ede506305c8..92adad836b573 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