The commit is pushed to "branch-rh10-6.12.0-55.52.1.4.x.vz10-ovz" and will
appear at [email protected]:openvz/vzkernel.git
after rh10-6.12.0-55.52.1.4.12.vz10
------>
commit 5916d64543acfa52c119ead1a39d764d869ddc5b
Author: Konstantin Khorenko <[email protected]>
Date: Mon Mar 23 21:31:22 2026 +0100
selftests/damon: fix -Wunused-but-set-variable in huge_count_read_write
huge_count_read_write.c: In function 'write_read_with_huge_count':
huge_count_read_write.c:22:13: warning: variable 'ret' set but not used
[-Wunused-but-set-variable]
22 | int ret;
| ^~~
Remove unused 'ret' variable. The read() return value is not needed
here -- the test only checks that huge count reads/writes don't cause
kernel warnings.
https://virtuozzo.atlassian.net/browse/VSTOR-127529
Signed-off-by: Konstantin Khorenko <[email protected]>
Reviewed-by: Vasileios Almpanis <[email protected]>
Feature: fix selftests
---
tools/testing/selftests/damon/huge_count_read_write.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tools/testing/selftests/damon/huge_count_read_write.c
b/tools/testing/selftests/damon/huge_count_read_write.c
index a6fe0689f88dc..fddc835ff8e75 100644
--- a/tools/testing/selftests/damon/huge_count_read_write.c
+++ b/tools/testing/selftests/damon/huge_count_read_write.c
@@ -19,7 +19,6 @@ void write_read_with_huge_count(char *file)
{
int filedesc = open(file, O_RDWR);
char buf[25];
- int ret;
printf("%s %s\n", __func__, file);
if (filedesc < 0) {
@@ -29,7 +28,7 @@ void write_read_with_huge_count(char *file)
write(filedesc, "", 0xfffffffful);
perror("after write: ");
- ret = read(filedesc, buf, 0xfffffffful);
+ read(filedesc, buf, 0xfffffffful);
perror("after read: ");
close(filedesc);
}
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel