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: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'
Date: Mon, 25 Aug 2025 23:03:49 +0800	[thread overview]
Message-ID: <202508252230.JgQLDkPC-lkp@intel.com> (raw)

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

                 reply	other threads:[~2025-08-25 15:04 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=202508252230.JgQLDkPC-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.