[gourryinverse:djhacks 18/38] mm/gup.c:2418:7: error: call to undeclared function 'folio_longterm_pin_forbidden'; ISO C99 and later do not support implicit function declarations
kernel test robot <[email protected]> Sat, 01 Aug 2026 03:08:45 +0800
| Newsgroups | dev.linux.lists.llvm,dev.linux.lists.oe-kbuild-all |
|---|---|
| Message-ID | <[email protected]> |
tree: https://github.com/gourryinverse/linux djhacks head: 09de2580129cf36e7ed3de65282a91fe3cc29e24 commit: b44aca34818ebf7e2ef962e85b23c05bb7882c05 [18/38] mm: add N_MEMORY_LTPIN node state for longterm-pin eligible nodes config: hexagon-randconfig-002-20260801 (https://download.01.org/0day-ci/archive/20260801/[email protected]/config) compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260801/[email protected]/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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All errors (new ones prefixed by >>): >> mm/gup.c:2418:7: error: call to undeclared function 'folio_longterm_pin_forbidden'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 2418 | if (folio_longterm_pin_forbidden(folio)) | ^ 1 error generated. vim +/folio_longterm_pin_forbidden +2418 mm/gup.c 2409 2410 /* True if any folio sits on a node that doesn't support longterm pinning */ 2411 static bool pofs_has_ltpin_forbidden(struct pages_or_folios *pofs) 2412 { 2413 struct folio *folio; 2414 long i = 0; 2415 2416 for (folio = pofs_get_folio(pofs, i); folio; 2417 folio = pofs_next_folio(folio, pofs, &i)) { > 2418 if (folio_longterm_pin_forbidden(folio)) 2419 return true; 2420 } 2421 return false; 2422 } 2423 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki