[Devel] [PATCH vz10 1/6] ms/selftests/damon/access_memory_even: remove unused variables

Konstantin Khorenko khorenko at virtuozzo.com
Mon Mar 23 20:07:29 MSK 2026


From: Ba Jing <bajing at cmss.chinamobile.com>

By reading the code, I found these variables are never referenced in the
code.  Just remove them.

Link: https://lkml.kernel.org/r/20240924021426.1980-1-bajing@cmss.chinamobile.com
Signed-off-by: Ba Jing <bajing at cmss.chinamobile.com>
Reviewed-by: SeongJae Park <sj at kernel.org>
Reviewed-by: Dev Jain <dev.jain at arm.com>
Reviewed-by: Shuah Khan <skhan at linuxfoundation.org>
Signed-off-by: Andrew Morton <akpm at linux-foundation.org>

(cherry picked from commit 12833a732346dcf4e3bde55d6556fedf90743656)
Applied cleanly.

https://virtuozzo.atlassian.net/browse/VSTOR-127529
Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>

Feature: fix selftests
---
 tools/testing/selftests/damon/access_memory_even.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/tools/testing/selftests/damon/access_memory_even.c b/tools/testing/selftests/damon/access_memory_even.c
index 3be121487432..a9f4e9aaf3a9 100644
--- a/tools/testing/selftests/damon/access_memory_even.c
+++ b/tools/testing/selftests/damon/access_memory_even.c
@@ -14,10 +14,8 @@
 int main(int argc, char *argv[])
 {
 	char **regions;
-	clock_t start_clock;
 	int nr_regions;
 	int sz_region;
-	int access_time_ms;
 	int i;
 
 	if (argc != 3) {
-- 
2.47.1



More information about the Devel mailing list