* [android-common:android13-5.15 3/3] mm/vmscan.c:4613:6: warning: no previous prototype for function 'isolate_page'
@ 2026-04-14 13:37 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-14 13:37 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
Hi yipeng,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/common android13-5.15
head: b1b609b1c10aeb69f25a224bce818978474f4eec
commit: 54677afc8eb1da47f2eebb6f5c810cd4b6db23dc [3/3] ANDROID: mm: export isolate_folio and reclaim_pages
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20260414/202604142115.XMMAoGFt-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 5bac06718f502014fade905512f1d26d578a18f3)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260414/202604142115.XMMAoGFt-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/202604142115.XMMAoGFt-lkp@intel.com/
All warnings (new ones prefixed by >>):
In file included from <built-in>:3:
In file included from include/linux/compiler_types.h:80:
include/linux/compiler-clang.h:24:9: warning: '__SANITIZE_ADDRESS__' macro redefined [-Wmacro-redefined]
24 | #define __SANITIZE_ADDRESS__
| ^
<built-in>:368:9: note: previous definition is here
368 | #define __SANITIZE_ADDRESS__ 1
| ^
mm/vmscan.c:917:15: warning: no previous prototype for function 'shrink_slab' [-Wmissing-prototypes]
917 | unsigned long shrink_slab(gfp_t gfp_mask, int nid,
| ^
mm/vmscan.c:917:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
917 | unsigned long shrink_slab(gfp_t gfp_mask, int nid,
| ^
| static
mm/vmscan.c:1391:6: warning: variable 'err' set but not used [-Wunused-but-set-variable]
1391 | int err;
| ^
>> mm/vmscan.c:4613:6: warning: no previous prototype for function 'isolate_page' [-Wmissing-prototypes]
4613 | bool isolate_page(struct lruvec *lruvec, struct page *page, struct scan_control *sc)
| ^
mm/vmscan.c:4613:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
4613 | bool isolate_page(struct lruvec *lruvec, struct page *page, struct scan_control *sc)
| ^
| static
4 warnings generated.
vim +/isolate_page +4613 mm/vmscan.c
4612
> 4613 bool isolate_page(struct lruvec *lruvec, struct page *page, struct scan_control *sc)
4614 {
4615 bool success;
4616
4617 /* unmapping inhibited */
4618 if (!sc->may_unmap && page_mapped(page))
4619 return false;
4620
4621 /* swapping inhibited */
4622 if (!(sc->may_writepage && (sc->gfp_mask & __GFP_IO)) &&
4623 (PageDirty(page) ||
4624 (PageAnon(page) && !PageSwapCache(page))))
4625 return false;
4626
4627 /* raced with release_pages() */
4628 if (!get_page_unless_zero(page))
4629 return false;
4630
4631 /* raced with another isolation */
4632 if (!TestClearPageLRU(page)) {
4633 put_page(page);
4634 return false;
4635 }
4636
4637 /* see the comment on MAX_NR_TIERS */
4638 if (!PageReferenced(page))
4639 set_mask_bits(&page->flags, LRU_REFS_MASK | LRU_REFS_FLAGS, 0);
4640
4641 /* for shrink_page_list() */
4642 ClearPageReclaim(page);
4643 ClearPageReferenced(page);
4644
4645 success = lru_gen_del_page(lruvec, page, true);
4646 VM_WARN_ON_ONCE_PAGE(!success, page);
4647
4648 return true;
4649 }
4650 EXPORT_SYMBOL_GPL(isolate_page);
4651
--
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:[~2026-04-14 13:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-14 13:37 [android-common:android13-5.15 3/3] mm/vmscan.c:4613:6: warning: no previous prototype for function 'isolate_page' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.