Re: [PATCH 6/7] mm, swap: remove swap slot cache
From: kernel test robot
Date: Sat Feb 15 2025 - 11:24:17 EST
Hi Kairui,
kernel test robot noticed the following build warnings:
[auto build test WARNING on akpm-mm/mm-everything]
url: https://github.com/intel-lab-lkp/linux/commits/Kairui-Song/mm-swap-avoid-reclaiming-irrelevant-swap-cache/20250215-020239
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/20250214175709.76029-7-ryncsn%40gmail.com
patch subject: [PATCH 6/7] mm, swap: remove swap slot cache
config: x86_64-buildonly-randconfig-003-20250215 (https://download.01.org/0day-ci/archive/20250216/202502160045.CBhqtRFf-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250216/202502160045.CBhqtRFf-lkp@xxxxxxxxx/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
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502160045.CBhqtRFf-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
>> mm/swapfile.c:2589:13: warning: '__has_usable_swap' defined but not used [-Wunused-function]
2589 | static bool __has_usable_swap(void)
| ^~~~~~~~~~~~~~~~~
vim +/__has_usable_swap +2589 mm/swapfile.c
40531542e28324 Cesar Eduardo Barros 2011-03-22 2588
80e75021486bd2 Kefeng Wang 2024-04-18 @2589 static bool __has_usable_swap(void)
80e75021486bd2 Kefeng Wang 2024-04-18 2590 {
80e75021486bd2 Kefeng Wang 2024-04-18 2591 return !plist_head_empty(&swap_active_head);
80e75021486bd2 Kefeng Wang 2024-04-18 2592 }
80e75021486bd2 Kefeng Wang 2024-04-18 2593
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki