* [linux-next:master 8222/8507] fs/proc/task_mmu.c:2153:8: error: call to undeclared function 'pagemap_scan_is_interesting_page'; ISO C99 and later do not support implicit function declarations
@ 2023-09-28 14:33 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-09-28 14:33 UTC (permalink / raw)
To: Arnd Bergmann
Cc: llvm, oe-kbuild-all, Linux Memory Management List, Andrew Morton
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 719136e5c24768ebdf80b9daa53facebbdd377c3
commit: 825ebc8e4bf948e5ab9a7e34f882f57285328204 [8222/8507] fs/proc/task_mmu: hide unused pagemap_scan_backout_range() function
config: mips-allnoconfig (https://download.01.org/0day-ci/archive/20230928/202309282239.G1uvQ61m-lkp@intel.com/config)
compiler: clang version 17.0.0 (https://github.com/llvm/llvm-project.git 4a5ac14ee968ff0ad5d2cc1ffa0299048db4c88a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230928/202309282239.G1uvQ61m-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/202309282239.G1uvQ61m-lkp@intel.com/
Note: the linux-next/master HEAD 719136e5c24768ebdf80b9daa53facebbdd377c3 builds fine.
It may have been fixed somewhere.
All errors (new ones prefixed by >>):
>> fs/proc/task_mmu.c:2153:8: error: call to undeclared function 'pagemap_scan_is_interesting_page'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2153 | if (!pagemap_scan_is_interesting_page(categories, p))
| ^
fs/proc/task_mmu.c:2153:8: note: did you mean 'pagemap_scan_is_interesting_vma'?
fs/proc/task_mmu.c:1972:13: note: 'pagemap_scan_is_interesting_vma' declared here
1972 | static bool pagemap_scan_is_interesting_vma(unsigned long categories,
| ^
fs/proc/task_mmu.c:2249:15: error: call to undeclared function 'pagemap_scan_is_interesting_page'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
2249 | if (!vma || !pagemap_scan_is_interesting_page(p->cur_vma_category, p))
| ^
2 errors generated.
vim +/pagemap_scan_is_interesting_page +2153 fs/proc/task_mmu.c
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2121
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2122 static int pagemap_scan_pmd_entry(pmd_t *pmd, unsigned long start,
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2123 unsigned long end, struct mm_walk *walk)
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2124 {
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2125 struct pagemap_scan_private *p = walk->private;
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2126 struct vm_area_struct *vma = walk->vma;
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2127 unsigned long addr, flush_end = 0;
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2128 pte_t *pte, *start_pte;
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2129 spinlock_t *ptl;
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2130 int ret;
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2131
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2132 arch_enter_lazy_mmu_mode();
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2133
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2134 ret = pagemap_scan_thp_entry(pmd, start, end, walk);
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2135 if (ret != -ENOENT) {
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2136 arch_leave_lazy_mmu_mode();
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2137 return ret;
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2138 }
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2139
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2140 ret = 0;
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2141 start_pte = pte = pte_offset_map_lock(vma->vm_mm, pmd, start, &ptl);
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2142 if (!pte) {
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2143 arch_leave_lazy_mmu_mode();
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2144 walk->action = ACTION_AGAIN;
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2145 return 0;
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2146 }
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2147
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2148 for (addr = start; addr != end; pte++, addr += PAGE_SIZE) {
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2149 unsigned long categories = p->cur_vma_category |
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2150 pagemap_page_category(p, vma, addr, ptep_get(pte));
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2151 unsigned long next = addr + PAGE_SIZE;
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2152
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 @2153 if (!pagemap_scan_is_interesting_page(categories, p))
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2154 continue;
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2155
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2156 ret = pagemap_scan_output(categories, p, addr, &next);
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2157 if (next == addr)
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2158 break;
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2159
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2160 if (~p->arg.flags & PM_SCAN_WP_MATCHING)
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2161 continue;
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2162 if (~categories & PAGE_IS_WRITTEN)
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2163 continue;
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2164
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2165 make_uffd_wp_pte(vma, addr, pte);
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2166 if (!flush_end)
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2167 start = addr;
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2168 flush_end = next;
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2169 }
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2170
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2171 if (flush_end)
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2172 flush_tlb_range(vma, start, addr);
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2173
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2174 pte_unmap_unlock(start_pte, ptl);
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2175 arch_leave_lazy_mmu_mode();
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2176
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2177 cond_resched();
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2178 return ret;
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2179 }
fef1d15288b455 Muhammad Usama Anjum 2023-08-21 2180
:::::: The code at line 2153 was first introduced by commit
:::::: fef1d15288b455d957cdee6ebf8118b525872bde fs/proc/task_mmu: implement IOCTL to get and optionally clear info about PTEs
:::::: TO: Muhammad Usama Anjum <usama.anjum@collabora.com>
:::::: CC: Andrew Morton <akpm@linux-foundation.org>
--
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:[~2023-09-28 14:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-28 14:33 [linux-next:master 8222/8507] fs/proc/task_mmu.c:2153:8: error: call to undeclared function 'pagemap_scan_is_interesting_page'; ISO C99 and later do not support implicit function declarations 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