[openeuler:OLK-6.6 3182/3182] include/linux/migrate.h:102:9: error: expected identifier or '(' before '{' token
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 7c9750f803899fe67a8d281d2d283e8d75d08d4d commit: 2a212a2a044ed85140cdf66e516f6bde7da08e9d [3182/3182] mm: migrate: add isolate_and_migrate_folios() config: arm64-allnoconfig (https://download.01.org/0day-ci/archive/20251113/202511131914.MqxXnsR5-lkp@i...) compiler: aarch64-linux-gcc (GCC) 15.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251113/202511131914.MqxXnsR5-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/202511131914.MqxXnsR5-lkp@intel.com/ All error/warnings (new ones prefixed by >>): In file included from mm/filemap.c:45:
include/linux/migrate.h:102:9: error: expected identifier or '(' before '{' token 102 | { return -EINVAL; } | ^ include/linux/migrate.h:98:19: warning: 'isolate_and_migrate_folios' declared 'static' but never defined [-Wunused-function] 98 | static inline int isolate_and_migrate_folios(struct folio **folios, unsigned int nr_folios, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -- In file included from mm/shmem.c:72: include/linux/migrate.h:102:9: error: expected identifier or '(' before '{' token 102 | { return -EINVAL; } | ^ mm/shmem.c: In function 'shmem_swapin_cluster': mm/shmem.c:1699:51: error: passing argument 3 of 'swap_cluster_readahead' from incompatible pointer type [-Wincompatible-pointer-types] 1699 | folio = swap_cluster_readahead(swap, gfp, mpol, ilx); | ^~~~ | | | struct mempolicy * In file included from mm/shmem.c:43: mm/swap.h:102:66: note: expected 'struct vm_fault *' but argument is of type 'struct mempolicy *' 102 | gfp_t gfp_mask, struct vm_fault *vmf) | ~~~~~~~~~~~~~~~~~^~~ mm/shmem.c:1699:17: error: too many arguments to function 'swap_cluster_readahead'; expected 3, have 4 1699 | folio = swap_cluster_readahead(swap, gfp, mpol, ilx); | ^~~~~~~~~~~~~~~~~~~~~~ ~~~ mm/swap.h:101:29: note: declared here 101 | static inline struct folio *swap_cluster_readahead(swp_entry_t entry, | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/migrate.h: At top level: include/linux/migrate.h:98:19: warning: 'isolate_and_migrate_folios' declared 'static' but never defined [-Wunused-function] 98 | static inline int isolate_and_migrate_folios(struct folio **folios, unsigned int nr_folios, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -- In file included from mm/memory.c:68: include/linux/migrate.h:102:9: error: expected identifier or '(' before '{' token 102 | { return -EINVAL; } | ^ mm/memory.c: In function 'do_numa_page': mm/memory.c:5538:24: warning: variable 'nr_pages' set but not used [-Wunused-but-set-variable] 5538 | int flags = 0, nr_pages; | ^~~~~~~~ include/linux/migrate.h: At top level: include/linux/migrate.h:98:19: warning: 'isolate_and_migrate_folios' declared 'static' but never defined [-Wunused-function] 98 | static inline int isolate_and_migrate_folios(struct folio **folios, unsigned int nr_folios, | ^~~~~~~~~~~~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for ARCH_SUPPORTS_SCHED_SOFT_QUOTA Depends on [n]: CGROUPS [=n] Selected by [y]: - ARM64 [=y] WARNING: unmet direct dependencies detected for HALTPOLL_CPUIDLE Depends on [n]: CPU_IDLE [=n] && ARCH_CPUIDLE_HALTPOLL [=y] && ARCH_HAS_OPTIMIZED_POLL [=y] Selected by [y]: - ARM64 [=y] 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
participants (1)
-
kernel test robot