]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm/zswap: mark zswap_stored_incompressible_pages as static
authorSeongJae Park <sj@kernel.org>
Thu, 21 Aug 2025 16:10:57 +0000 (09:10 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 12 Sep 2025 00:24:55 +0000 (17:24 -0700)
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 <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202508211706.DnJPQQMn-lkp@intel.com/
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/zswap.c

index 1f1ac043a2d9a9912fdd2540f36291e1711d8603..d3ad526ca20b0625ffd3acb2ea76fcac76039add 100644 (file)
@@ -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