Re: [PATCH 12/19] mm, swap: use swap cache as the swap in synchronize layer
From: kernel test robot
Date: Wed Oct 29 2025 - 15:26:37 EST
Hi Kairui,
kernel test robot noticed the following build warnings:
[auto build test WARNING on f30d294530d939fa4b77d61bc60f25c4284841fa]
url: https://github.com/intel-lab-lkp/linux/commits/Kairui-Song/mm-swap-rename-__read_swap_cache_async-to-swap_cache_alloc_folio/20251030-000506
base: f30d294530d939fa4b77d61bc60f25c4284841fa
patch link: https://lore.kernel.org/r/20251029-swap-table-p2-v1-12-3d43f3b6ec32%40tencent.com
patch subject: [PATCH 12/19] mm, swap: use swap cache as the swap in synchronize layer
config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20251030/202510300338.GvcdaiCz-lkp@xxxxxxxxx/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project d1c086e82af239b245fe8d7832f2753436634990)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251030/202510300338.GvcdaiCz-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/202510300338.GvcdaiCz-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
In file included from mm/filemap.c:66:
>> mm/swap.h:428:1: warning: non-void function does not return a value [-Wreturn-type]
428 | }
| ^
1 warning generated.
--
In file included from mm/gup.c:29:
>> mm/swap.h:428:1: warning: non-void function does not return a value [-Wreturn-type]
428 | }
| ^
mm/gup.c:74:29: warning: unused function 'try_get_folio' [-Wunused-function]
74 | static inline struct folio *try_get_folio(struct page *page, int refs)
| ^~~~~~~~~~~~~
2 warnings generated.
vim +428 mm/swap.h
014bb1de4fc17d5 NeilBrown 2022-05-09 424
2eaa2d7ed6e0caa Kairui Song 2025-10-29 425 static inline int swap_cache_add_folio(struct folio *folio, swp_entry_t entry,
2eaa2d7ed6e0caa Kairui Song 2025-10-29 426 void **shadow, bool alloc)
014bb1de4fc17d5 NeilBrown 2022-05-09 427 {
014bb1de4fc17d5 NeilBrown 2022-05-09 @428 }
014bb1de4fc17d5 NeilBrown 2022-05-09 429
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki