* [anolis-intel-cloud:intel-5.10-GNR-perf-uncore-ANBZ24140 0/2] mm/memory_hotplug.c:982:6: warning: no previous prototype for function '__adjust_present_page_count'
@ 2025-08-25 15:03 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-08-25 15:03 UTC (permalink / raw)
To: aubrey.li; +Cc: oe-kbuild-all
Hi Yang,
FYI, the error/warning still remains.
tree: https://gitee.com/anolis/intel-cloud-kernel.git intel-5.10-GNR-perf-uncore-ANBZ24140
head: 5b97140220e2f9196fa5de48f6be468691f8b43b
commit: 66756394812b1ce3d99fd553b8d496da6a755dce [0/2] anolis: mm/memory_hotplug: refactor adjust_present_page_count()
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20250825/202508252230.JgQLDkPC-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project d26ea02060b1c9db751d188b2edb0059a9eb273d)
rustc: rustc 1.58.0 (02072b482 2022-01-11)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250825/202508252230.JgQLDkPC-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/202508252230.JgQLDkPC-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> mm/memory_hotplug.c:982:6: warning: no previous prototype for function '__adjust_present_page_count' [-Wmissing-prototypes]
982 | void __adjust_present_page_count(struct page *page, struct memory_group *group,
| ^
mm/memory_hotplug.c:982:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
982 | void __adjust_present_page_count(struct page *page, struct memory_group *group,
| ^
| static
1 warning generated.
vim +/__adjust_present_page_count +982 mm/memory_hotplug.c
981
> 982 void __adjust_present_page_count(struct page *page, struct memory_group *group,
983 long nr_pages, struct zone *zone, int phase)
984 {
985 const bool movable = zone_idx(zone) == ZONE_MOVABLE;
986 unsigned long flags;
987
988 if (phase == MHP_PHASE_DEFAULT || phase == MHP_PHASE_DEFERRED) {
989 /*
990 * We only support onlining/offlining/adding/removing of complete
991 * memory blocks; therefore, either all is either early or hotplugged.
992 */
993 if (early_section(__pfn_to_section(page_to_pfn(page))))
994 zone->present_early_pages += nr_pages;
995 zone->present_pages += nr_pages;
996 pgdat_resize_lock(zone->zone_pgdat, &flags);
997 zone->zone_pgdat->node_present_pages += nr_pages;
998 pgdat_resize_unlock(zone->zone_pgdat, &flags);
999 }
1000
1001 if (phase == MHP_PHASE_DEFAULT || phase == MHP_PHASE_PREPARE) {
1002 if (group && movable)
1003 group->present_movable_pages += nr_pages;
1004 else if (group && !movable)
1005 group->present_kernel_pages += nr_pages;
1006 }
1007 }
1008
--
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:[~2025-08-25 15:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-25 15:03 [anolis-intel-cloud:intel-5.10-GNR-perf-uncore-ANBZ24140 0/2] mm/memory_hotplug.c:982:6: warning: no previous prototype for function '__adjust_present_page_count' 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.