linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] selftest/vm_util: remove unused variables
@ 2025-11-04  6:28 Zhang Chujun
  2025-11-05 22:16 ` Lorenzo Stoakes
  0 siblings, 1 reply; 3+ messages in thread
From: Zhang Chujun @ 2025-11-04  6:28 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm, david, thomas.weissschuh, Zhang Chujun

The global variables __page_size and __page_shift are declared in
vm_util.c, but they are never used anywhere in the codebase. This
patch removes them to clean up the source and eliminate dead code.

Signed-off-by: Zhang Chujun <zhangchujun@cmss.chinamobile.com>

diff --git a/tools/testing/selftests/mm/vm_util.c b/tools/testing/selftests/mm/vm_util.c
index 3869e68bb8b5..3983c368edd2 100644
--- a/tools/testing/selftests/mm/vm_util.c
+++ b/tools/testing/selftests/mm/vm_util.c
@@ -17,9 +17,6 @@
 #define STATUS_FILE_PATH "/proc/self/status"
 #define MAX_LINE_LENGTH 500
 
-unsigned int __page_size;
-unsigned int __page_shift;
-
 uint64_t pagemap_get_entry(int fd, char *start)
 {
 	const unsigned long pfn = (unsigned long)start / getpagesize();
-- 
2.50.1.windows.1





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-11-06 10:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-11-04  6:28 [PATCH] selftest/vm_util: remove unused variables Zhang Chujun
2025-11-05 22:16 ` Lorenzo Stoakes
2025-11-06 10:04   ` David Hildenbrand (Red Hat)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox