tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 7c9750f803899fe67a8d281d2d283e8d75d08d4d commit: 2a212a2a044ed85140cdf66e516f6bde7da08e9d [3182/3182] mm: migrate: add isolate_and_migrate_folios() config: loongarch-allnoconfig (https://download.01.org/0day-ci/archive/20251113/202511131826.yzKdVxQW-lkp@i...) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 0bba1e76581bad04e7d7f09f5115ae5e2989e0d9) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251113/202511131826.yzKdVxQW-lkp@i...) 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/202511131826.yzKdVxQW-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from mm/filemap.c:45:
include/linux/migrate.h:102:2: error: expected identifier or '(' 102 | { return -EINVAL; } | ^ 1 error generated. -- In file included from mm/shmem.c:72: include/linux/migrate.h:102:2: error: expected identifier or '(' 102 | { return -EINVAL; } | ^ mm/shmem.c:1699:50: error: too many arguments to function call, expected 3, have 4 1699 | folio = swap_cluster_readahead(swap, gfp, mpol, ilx); | ~~~~~~~~~~~~~~~~~~~~~~ ^~~ mm/swap.h:101:29: note: 'swap_cluster_readahead' declared here 101 | static inline struct folio *swap_cluster_readahead(swp_entry_t entry, | ^ ~~~~~~~~~~~~~~~~~~ 102 | gfp_t gfp_mask, struct vm_fault *vmf) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2 errors generated. -- In file included from mm/memory.c:68: include/linux/migrate.h:102:2: error: expected identifier or '(' 102 | { return -EINVAL; } | ^ In file included from mm/memory.c:89: In file included from arch/loongarch/include/asm/tlb.h:140: include/asm-generic/tlb.h:632:10: warning: parameter 'ptep' set but not used [-Wunused-but-set-parameter] 632 | pte_t *ptep, unsigned int nr, unsigned long address) | ^ In file included from mm/memory.c:89: arch/loongarch/include/asm/tlb.h:144:24: warning: default initialization of an object of type 'struct vm_area_struct' with const member leaves the object uninitialized [-Wdefault-const-init-field-unsafe] 144 | struct vm_area_struct vma; | ^ include/linux/mm_types.h:659:20: note: member 'vm_flags' declared 'const' here 659 | const vm_flags_t vm_flags; | ^ mm/memory.c:5538:17: warning: variable 'nr_pages' set but not used [-Wunused-but-set-variable] 5538 | int flags = 0, nr_pages; | ^ 3 warnings and 1 error generated. -- In file included from mm/mprotect.c:25: include/linux/migrate.h:102:2: error: expected identifier or '(' 102 | { return -EINVAL; } | ^ In file included from mm/mprotect.c:38: In file included from arch/loongarch/include/asm/tlb.h:140: include/asm-generic/tlb.h:632:10: warning: parameter 'ptep' set but not used [-Wunused-but-set-parameter] 632 | pte_t *ptep, unsigned int nr, unsigned long address) | ^ In file included from mm/mprotect.c:38: arch/loongarch/include/asm/tlb.h:144:24: warning: default initialization of an object of type 'struct vm_area_struct' with const member leaves the object uninitialized [-Wdefault-const-init-field-unsafe] 144 | struct vm_area_struct vma; | ^ include/linux/mm_types.h:659:20: note: member 'vm_flags' declared 'const' here 659 | const vm_flags_t vm_flags; | ^ 2 warnings and 1 error generated.
vim +102 include/linux/migrate.h 89 90 static inline void putback_movable_pages(struct list_head *l) {} 91 static inline int migrate_pages(struct list_head *l, new_folio_t new, 92 free_folio_t free, unsigned long private, 93 enum migrate_mode mode, int reason, unsigned int *ret_succeeded) 94 { return -ENOSYS; } 95 static inline struct folio *alloc_migration_target(struct folio *src, 96 unsigned long private) 97 { return NULL; } 98 static inline int isolate_and_migrate_folios(struct folio **folios, unsigned int nr_folios, 99 new_folio_t get_new_folio, free_folio_t put_new_folio, 100 unsigned long private, enum migrate_mode mode, 101 unsigned int *nr_succeeded);
102 { return -EINVAL; } 103 static inline bool isolate_movable_page(struct page *page, isolate_mode_t mode) 104 { return false; } 105 static inline bool isolate_folio_to_list(struct folio *folio, struct list_head *list) 106 { return false; } 107
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki