All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: aubrey.li@linux.intel.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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'
Date: Sat, 11 Oct 2025 01:38:07 +0800	[thread overview]
Message-ID: <202510110109.dfLsypId-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-10-10 17:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202510110109.dfLsypId-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=aubrey.li@linux.intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.