From 308d1919d8f7f80d0e90363f5fadfc0f7b5ec33d Mon Sep 17 00:00:00 2001 From: SeongJae Park Date: Thu, 21 Aug 2025 09:10:57 -0700 Subject: [PATCH] mm/zswap: mark zswap_stored_incompressible_pages as static Only zswap.c uses zswap_stored_incompressible_pages, but it is not marked as static. This incurs a sparse warning that reported by kernel teset robot. Mark it as a static variable to eliminate the warning. Link: https://lkml.kernel.org/r/20250821161750.78192-1-sj@kernel.org Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202508211706.DnJPQQMn-lkp@intel.com/ Signed-off-by: SeongJae Park Signed-off-by: Andrew Morton --- mm/zswap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/zswap.c b/mm/zswap.c index 1f1ac043a2d9a..d3ad526ca20b0 100644 --- a/mm/zswap.c +++ b/mm/zswap.c @@ -45,7 +45,7 @@ /* The number of pages currently stored in zswap */ atomic_long_t zswap_stored_pages = ATOMIC_LONG_INIT(0); /* The number of incompressible pages currently stored in zswap */ -atomic_long_t zswap_stored_incompressible_pages = ATOMIC_LONG_INIT(0); +static atomic_long_t zswap_stored_incompressible_pages = ATOMIC_LONG_INIT(0); /* * The statistics below are not protected from concurrent access for -- 2.51.0