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 e0a8b995a2a4ed4a3406b4a35698b16b3ec5a55a
Author: Konstantin Khorenko <[email protected]>
Date: Mon Mar 23 21:31:32 2026 +0100
selftests/prctl: remove unused variable 'j' in set-process-name
set-process-name.c: In function 'check_name':
set-process-name.c:61:13: warning: variable 'j' set but not used
[-Wunused-but-set-variable]
61 | int j;
| ^
Remove unused 'j' to fix -Wunused-but-set-variable warning.
The snprintf() return value is not needed here.
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/prctl/set-process-name.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tools/testing/selftests/prctl/set-process-name.c
b/tools/testing/selftests/prctl/set-process-name.c
index 562f707ba771d..27468cb86a390 100644
--- a/tools/testing/selftests/prctl/set-process-name.c
+++ b/tools/testing/selftests/prctl/set-process-name.c
@@ -58,9 +58,8 @@ int check_name(void)
char path[MAX_PATH_LEN] = {};
char name[TASK_COMM_LEN] = {};
char output[TASK_COMM_LEN] = {};
- int j;
- j = snprintf(path, MAX_PATH_LEN, "/proc/self/task/%d/comm", pid);
+ snprintf(path, MAX_PATH_LEN, "/proc/self/task/%d/comm", pid);
fptr = fopen(path, "r");
if (!fptr)
return -EIO;
_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel