From: SeongJae Park Date: Thu, 21 Aug 2025 16:10:57 +0000 (-0700) Subject: mm/zswap: mark zswap_stored_incompressible_pages as static X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=308d1919d8f7f80d0e90363f5fadfc0f7b5ec33d;p=users%2Fjedix%2Flinux-maple.git 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 --- 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