* Re: [PATCH v2 1/1] mm/swapfile.c: select the swap device with default priority round robin
[not found] <20250926155504.5122-2-bhe@redhat.com>
@ 2025-09-27 7:56 ` kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-09-27 7:56 UTC (permalink / raw)
To: Baoquan He, linux-mm
Cc: llvm, oe-kbuild-all, akpm, chrisl, kasong, youngjun.park,
aaron.lu, baohua, shikemeng, nphamcs, Baoquan He
Hi Baoquan,
kernel test robot noticed the following build errors:
[auto build test ERROR on linus/master]
[also build test ERROR on v6.17-rc7 next-20250926]
[cannot apply to akpm-mm/mm-everything]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Baoquan-He/mm-swapfile-c-select-the-swap-device-with-default-priority-round-robin/20250926-235740
base: linus/master
patch link: https://lore.kernel.org/r/20250926155504.5122-2-bhe%40redhat.com
patch subject: [PATCH v2 1/1] mm/swapfile.c: select the swap device with default priority round robin
config: x86_64-buildonly-randconfig-002-20250927 (https://download.01.org/0day-ci/archive/20250927/202509271545.8d7xtJIA-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250927/202509271545.8d7xtJIA-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
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202509271545.8d7xtJIA-lkp@intel.com/
All errors (new ones prefixed by >>):
>> mm/swapfile.c:2550:24: error: use of undeclared identifier 'swap_active_head'; did you mean 'swap_avail_head'?
2550 | plist_add(&si->list, &swap_active_head);
| ^~~~~~~~~~~~~~~~
| swap_avail_head
mm/swapfile.c:99:19: note: 'swap_avail_head' declared here
99 | static PLIST_HEAD(swap_avail_head);
| ^
mm/swapfile.c:2655:27: error: use of undeclared identifier 'swap_active_head'; did you mean 'swap_avail_head'?
2655 | plist_for_each_entry(p, &swap_active_head, list) {
| ^~~~~~~~~~~~~~~~
| swap_avail_head
include/linux/plist.h:173:30: note: expanded from macro 'plist_for_each_entry'
173 | list_for_each_entry(pos, &(head)->node_list, mem.node_list)
| ^
include/linux/list.h:770:30: note: expanded from macro 'list_for_each_entry'
770 | for (pos = list_first_entry(head, typeof(*pos), member); \
| ^
include/linux/list.h:612:14: note: expanded from macro 'list_first_entry'
612 | list_entry((ptr)->next, type, member)
| ^
include/linux/list.h:601:15: note: expanded from macro 'list_entry'
601 | container_of(ptr, type, member)
| ^
include/linux/container_of.h:20:26: note: expanded from macro 'container_of'
20 | void *__mptr = (void *)(ptr); \
| ^
mm/swapfile.c:99:19: note: 'swap_avail_head' declared here
99 | static PLIST_HEAD(swap_avail_head);
| ^
mm/swapfile.c:2655:27: error: use of undeclared identifier 'swap_active_head'; did you mean 'swap_avail_head'?
2655 | plist_for_each_entry(p, &swap_active_head, list) {
| ^~~~~~~~~~~~~~~~
| swap_avail_head
include/linux/plist.h:173:30: note: expanded from macro 'plist_for_each_entry'
173 | list_for_each_entry(pos, &(head)->node_list, mem.node_list)
| ^
include/linux/list.h:770:30: note: expanded from macro 'list_for_each_entry'
770 | for (pos = list_first_entry(head, typeof(*pos), member); \
| ^
include/linux/list.h:612:14: note: expanded from macro 'list_first_entry'
612 | list_entry((ptr)->next, type, member)
| ^
note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:507:63: note: expanded from macro '__same_type'
507 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
| ^
include/linux/build_bug.h:77:50: note: expanded from macro 'static_assert'
77 | #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr)
| ^
include/linux/build_bug.h:78:56: note: expanded from macro '__static_assert'
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^
mm/swapfile.c:99:19: note: 'swap_avail_head' declared here
99 | static PLIST_HEAD(swap_avail_head);
| ^
mm/swapfile.c:2655:27: error: use of undeclared identifier 'swap_active_head'; did you mean 'swap_avail_head'?
2655 | plist_for_each_entry(p, &swap_active_head, list) {
| ^~~~~~~~~~~~~~~~
| swap_avail_head
include/linux/plist.h:173:30: note: expanded from macro 'plist_for_each_entry'
173 | list_for_each_entry(pos, &(head)->node_list, mem.node_list)
| ^
include/linux/list.h:770:30: note: expanded from macro 'list_for_each_entry'
770 | for (pos = list_first_entry(head, typeof(*pos), member); \
| ^
include/linux/list.h:612:14: note: expanded from macro 'list_first_entry'
612 | list_entry((ptr)->next, type, member)
| ^
note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/compiler_types.h:507:63: note: expanded from macro '__same_type'
507 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
| ^
include/linux/build_bug.h:77:50: note: expanded from macro 'static_assert'
77 | #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr)
| ^
include/linux/build_bug.h:78:56: note: expanded from macro '__static_assert'
78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
| ^
mm/swapfile.c:99:19: note: 'swap_avail_head' declared here
99 | static PLIST_HEAD(swap_avail_head);
| ^
mm/swapfile.c:2655:27: error: use of undeclared identifier 'swap_active_head'; did you mean 'swap_avail_head'?
2655 | plist_for_each_entry(p, &swap_active_head, list) {
| ^~~~~~~~~~~~~~~~
| swap_avail_head
include/linux/plist.h:173:30: note: expanded from macro 'plist_for_each_entry'
173 | list_for_each_entry(pos, &(head)->node_list, mem.node_list)
| ^
include/linux/list.h:771:32: note: expanded from macro 'list_for_each_entry'
771 | !list_entry_is_head(pos, head, member); \
| ^
include/linux/list.h:761:30: note: expanded from macro 'list_entry_is_head'
761 | list_is_head(&pos->member, (head))
| ^
mm/swapfile.c:99:19: note: 'swap_avail_head' declared here
99 | static PLIST_HEAD(swap_avail_head);
| ^
mm/swapfile.c:2677:23: error: use of undeclared identifier 'swap_active_head'; did you mean 'swap_avail_head'?
2677 | plist_del(&p->list, &swap_active_head);
| ^~~~~~~~~~~~~~~~
| swap_avail_head
vim +2550 mm/swapfile.c
eb085574a7526c Ying Huang 2019-07-11 2542
b85508d7de901c Barry Song 2024-08-08 2543 static void _enable_swap_info(struct swap_info_struct *si)
eb085574a7526c Ying Huang 2019-07-11 2544 {
b85508d7de901c Barry Song 2024-08-08 2545 atomic_long_add(si->pages, &nr_swap_pages);
b85508d7de901c Barry Song 2024-08-08 2546 total_swap_pages += si->pages;
40531542e28324 Cesar Eduardo Barros 2011-03-22 2547
adfab836f4908d Dan Streetman 2014-06-04 2548 assert_spin_locked(&swap_lock);
5b648db56b50e1 Baoquan He 2025-09-26 2549
b85508d7de901c Barry Song 2024-08-08 @2550 plist_add(&si->list, &swap_active_head);
c70699e555537b Ma Wupeng 2023-06-27 2551
b228386cf237e6 Kairui Song 2025-01-14 2552 /* Add back to available list */
b228386cf237e6 Kairui Song 2025-01-14 2553 add_to_avail_list(si, true);
cf0cac0a093415 Cesar Eduardo Barros 2012-12-11 2554 }
cf0cac0a093415 Cesar Eduardo Barros 2012-12-11 2555
--
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:[~2025-09-27 7:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20250926155504.5122-2-bhe@redhat.com>
2025-09-27 7:56 ` [PATCH v2 1/1] mm/swapfile.c: select the swap device with default priority round robin 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