tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: ebdf6593446d169605a079430b44abc212c60eb6 commit: 923e224a12462d640fa37f3069c6bfafd378ac3b [3198/3198] mm: introduce remap_pfn_range_try_pmd() for PMD-level hugepage mapping config: arm64-allnoconfig (https://download.01.org/0day-ci/archive/20251117/202511171413.zOn7Hte0-lkp@i...) compiler: aarch64-linux-gcc (GCC) 15.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251117/202511171413.zOn7Hte0-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/202511171413.zOn7Hte0-lkp@intel.com/ All warnings (new ones prefixed by >>): 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:2802:5: warning: no previous prototype for '__remap_pfn_range' [-Wmissing-prototypes] 2802 | int __remap_pfn_range(struct vm_area_struct *vma, unsigned long addr, | ^~~~~~~~~~~~~~~~~ mm/memory.c: In function 'do_numa_page': mm/memory.c:5614:24: warning: variable 'nr_pages' set but not used [-Wunused-but-set-variable] 5614 | 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 +/__remap_pfn_range +2802 mm/memory.c 2789 2790 /** 2791 * remap_pfn_range - remap kernel memory to userspace 2792 * @vma: user vma to map to 2793 * @addr: target page aligned user address to start at 2794 * @pfn: page frame number of kernel physical memory address 2795 * @size: size of mapping area 2796 * @prot: page protection flags for this mapping 2797 * 2798 * Note: this is only safe if the mm semaphore is held when called. 2799 * 2800 * Return: %0 on success, negative error code otherwise. 2801 */
2802 int __remap_pfn_range(struct vm_area_struct *vma, unsigned long addr, 2803 unsigned long pfn, unsigned long size, pgprot_t prot, 2804 unsigned int page_shift) 2805 { 2806 int err; 2807 2808 err = track_pfn_remap(vma, &prot, pfn, addr, PAGE_ALIGN(size)); 2809 if (err) 2810 return -EINVAL; 2811 2812 err = __remap_pfn_range_notrack(vma, addr, pfn, size, prot, page_shift); 2813 if (err) 2814 untrack_pfn(vma, pfn, PAGE_ALIGN(size), true); 2815 return err; 2816 } 2817
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki