* mm/zswap.c:58:12: warning: variable 'zswap_pool_limit_hit' set but not used
@ 2026-09-23 2:45 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-23 2:45 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: oe-kbuild-all, linux-kernel, Carlos Maiolino, Darrick J. Wong
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fe2ec83746e501645709761605c2464a44fd2929
commit: f5caeb3689ea2d8a8c0790d9eea68b63e8f15496 xfs: XFS_ONLINE_SCRUB_STATS should depend on DEBUG_FS
date: 11 months ago
config: sparc64-randconfig-r2107-20260923 (https://download.01.org/0day-ci/archive/20260923/202609230402.t5SIdVPp-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project 4b99afb361a8cfd45fc17aebc637688661e9e472)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260923/202609230402.t5SIdVPp-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Fixes: f5caeb3689ea ("xfs: XFS_ONLINE_SCRUB_STATS should depend on DEBUG_FS")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202609230402.t5SIdVPp-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> mm/zswap.c:58:12: warning: variable 'zswap_pool_limit_hit' set but not used [-Wunused-but-set-global]
58 | static u64 zswap_pool_limit_hit;
| ^
>> mm/zswap.c:60:12: warning: variable 'zswap_written_back_pages' set but not used [-Wunused-but-set-global]
60 | static u64 zswap_written_back_pages;
| ^
>> mm/zswap.c:62:12: warning: variable 'zswap_reject_reclaim_fail' set but not used [-Wunused-but-set-global]
62 | static u64 zswap_reject_reclaim_fail;
| ^
>> mm/zswap.c:64:12: warning: variable 'zswap_reject_compress_fail' set but not used [-Wunused-but-set-global]
64 | static u64 zswap_reject_compress_fail;
| ^
>> mm/zswap.c:66:12: warning: variable 'zswap_reject_compress_poor' set but not used [-Wunused-but-set-global]
66 | static u64 zswap_reject_compress_poor;
| ^
>> mm/zswap.c:68:12: warning: variable 'zswap_decompress_fail' set but not used [-Wunused-but-set-global]
68 | static u64 zswap_decompress_fail;
| ^
>> mm/zswap.c:70:12: warning: variable 'zswap_reject_alloc_fail' set but not used [-Wunused-but-set-global]
70 | static u64 zswap_reject_alloc_fail;
| ^
>> mm/zswap.c:72:12: warning: variable 'zswap_reject_kmemcache_fail' set but not used [-Wunused-but-set-global]
72 | static u64 zswap_reject_kmemcache_fail;
| ^
8 warnings generated.
vim +/zswap_pool_limit_hit +58 mm/zswap.c
2b2811178e8555 Seth Jennings 2013-07-10 56
2b2811178e8555 Seth Jennings 2013-07-10 57 /* Pool limit was hit (see zswap_max_pool_percent) */
2b2811178e8555 Seth Jennings 2013-07-10 @58 static u64 zswap_pool_limit_hit;
2b2811178e8555 Seth Jennings 2013-07-10 59 /* Pages written back when pool limit was reached */
2b2811178e8555 Seth Jennings 2013-07-10 @60 static u64 zswap_written_back_pages;
2b2811178e8555 Seth Jennings 2013-07-10 61 /* Store failed due to a reclaim failure after pool limit was reached */
2b2811178e8555 Seth Jennings 2013-07-10 @62 static u64 zswap_reject_reclaim_fail;
cb61dad80fdc6a Nhat Pham 2023-10-24 63 /* Store failed due to compression algorithm failure */
cb61dad80fdc6a Nhat Pham 2023-10-24 @64 static u64 zswap_reject_compress_fail;
2b2811178e8555 Seth Jennings 2013-07-10 65 /* Compressed page was too big for the allocator to (optimally) store */
2b2811178e8555 Seth Jennings 2013-07-10 @66 static u64 zswap_reject_compress_poor;
ff22f9299d7b2c Nhat Pham 2025-03-06 67 /* Load or writeback failed due to decompression failure */
ff22f9299d7b2c Nhat Pham 2025-03-06 @68 static u64 zswap_decompress_fail;
2b2811178e8555 Seth Jennings 2013-07-10 69 /* Store failed because underlying allocator could not get memory */
2b2811178e8555 Seth Jennings 2013-07-10 @70 static u64 zswap_reject_alloc_fail;
2b2811178e8555 Seth Jennings 2013-07-10 71 /* Store failed because the entry metadata could not be allocated (rare) */
2b2811178e8555 Seth Jennings 2013-07-10 @72 static u64 zswap_reject_kmemcache_fail;
2b2811178e8555 Seth Jennings 2013-07-10 73
:::::: The code at line 58 was first introduced by commit
:::::: 2b2811178e85553405b86e3fe78357b9b95889ce zswap: add to mm/
:::::: TO: Seth Jennings <sjenning@linux.vnet.ibm.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-23 2:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-23 2:45 mm/zswap.c:58:12: warning: variable 'zswap_pool_limit_hit' set but not used kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®