All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	Carlos Maiolino <cem@kernel.org>,
	"Darrick J. Wong" <djwong@kernel.org>
Subject: mm/zswap.c:58:12: warning: variable 'zswap_pool_limit_hit' set but not used
Date: Wed, 23 Sep 2026 04:45:20 +0200	[thread overview]
Message-ID: <202609230402.t5SIdVPp-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-09-23  2:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202609230402.t5SIdVPp-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=cem@kernel.org \
    --cc=djwong@kernel.org \
    --cc=geert@linux-m68k.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.