* [anolis-intel-cloud:devel-5.10 0/3] mm/memory_hotplug.c:452:12: warning: no previous prototype for function '__remove_pfn_range_from_zone'
@ 2025-10-10 17:38 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-10-10 17:38 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 devel-5.10
head: d3c7bd9fa87b650ea6f757905765429dadcae46a
commit: f5bc00581306fa4057d2e3a84b9a347c1ada021e [0/3] anolis: mm/memory_hotplug: refactor remove_pfn_range_from_zone()
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20251011/202510110109.dfLsypId-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 39f292ffa13d7ca0d1edff27ac8fd55024bb4d19)
rustc: rustc 1.58.0 (02072b482 2022-01-11)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251011/202510110109.dfLsypId-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/202510110109.dfLsypId-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> mm/memory_hotplug.c:452:12: warning: no previous prototype for function '__remove_pfn_range_from_zone' [-Wmissing-prototypes]
452 | void __ref __remove_pfn_range_from_zone(struct zone *zone,
| ^
mm/memory_hotplug.c:452:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
452 | void __ref __remove_pfn_range_from_zone(struct zone *zone,
| ^
| static
mm/memory_hotplug.c:681:12: warning: no previous prototype for function '__move_pfn_range_to_zone' [-Wmissing-prototypes]
681 | void __ref __move_pfn_range_to_zone(struct zone *zone, unsigned long start_pfn,
| ^
mm/memory_hotplug.c:681:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
681 | void __ref __move_pfn_range_to_zone(struct zone *zone, unsigned long start_pfn,
| ^
| static
mm/memory_hotplug.c:1013:6: warning: no previous prototype for function '__adjust_present_page_count' [-Wmissing-prototypes]
1013 | void __adjust_present_page_count(struct page *page, struct memory_group *group,
| ^
mm/memory_hotplug.c:1013:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
1013 | void __adjust_present_page_count(struct page *page, struct memory_group *group,
| ^
| static
3 warnings generated.
vim +/__remove_pfn_range_from_zone +452 mm/memory_hotplug.c
451
> 452 void __ref __remove_pfn_range_from_zone(struct zone *zone,
453 unsigned long start_pfn,
454 unsigned long nr_pages,
455 int phase)
456 {
457 const unsigned long end_pfn = start_pfn + nr_pages;
458 struct pglist_data *pgdat = zone->zone_pgdat;
459 unsigned long pfn, cur_nr_pages, flags;
460
461 if (phase == MHP_PHASE_DEFAULT || phase == MHP_PHASE_DEFERRED) {
462 /* Poison struct pages because they are now uninitialized again. */
463 for (pfn = start_pfn; pfn < end_pfn; pfn += cur_nr_pages) {
464 cond_resched();
465
466 /* Select all remaining pages up to the next section boundary */
467 cur_nr_pages =
468 min(end_pfn - pfn, SECTION_ALIGN_UP(pfn + 1) - pfn);
469 page_init_poison(pfn_to_page(pfn),
470 sizeof(struct page) * cur_nr_pages);
471 }
472 }
473
--
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-10-10 17:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-10 17:38 [anolis-intel-cloud:devel-5.10 0/3] mm/memory_hotplug.c:452:12: warning: no previous prototype for function '__remove_pfn_range_from_zone' 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.