From: kernel test robot <lkp@intel.com>
To: Barry Song <v-songbaohua@oppo.com>
Cc: oe-kbuild-all@lists.linux.dev,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>,
Nhat Pham <nphamcs@gmail.com>
Subject: [akpm-mm:mm-unstable 27/106] mm/page_io.c:220:17: error: implicit declaration of function 'count_objcg_events'; did you mean 'count_objcg_event'?
Date: Wed, 6 Nov 2024 21:02:14 +0800 [thread overview]
Message-ID: <202411062114.V0749sXc-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable
head: 7994b7ea6ac880efd0c38fedfbffd5ab8b1b7b2b
commit: c10966f19a878a66206327ebe3b85500f59f47e2 [27/106] mm: count zeromap read and set for swapout and swapin
config: x86_64-rhel-8.3 (https://download.01.org/0day-ci/archive/20241106/202411062114.V0749sXc-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241106/202411062114.V0749sXc-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/202411062114.V0749sXc-lkp@intel.com/
Note: the akpm-mm/mm-unstable HEAD 7994b7ea6ac880efd0c38fedfbffd5ab8b1b7b2b builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
mm/page_io.c: In function 'swap_zeromap_folio_set':
>> mm/page_io.c:220:17: error: implicit declaration of function 'count_objcg_events'; did you mean 'count_objcg_event'? [-Werror=implicit-function-declaration]
220 | count_objcg_events(objcg, SWPOUT_ZERO, nr_pages);
| ^~~~~~~~~~~~~~~~~~
| count_objcg_event
cc1: some warnings being treated as errors
vim +220 mm/page_io.c
204
205 static void swap_zeromap_folio_set(struct folio *folio)
206 {
207 struct obj_cgroup *objcg = get_obj_cgroup_from_folio(folio);
208 struct swap_info_struct *sis = swp_swap_info(folio->swap);
209 int nr_pages = folio_nr_pages(folio);
210 swp_entry_t entry;
211 unsigned int i;
212
213 for (i = 0; i < folio_nr_pages(folio); i++) {
214 entry = page_swap_entry(folio_page(folio, i));
215 set_bit(swp_offset(entry), sis->zeromap);
216 }
217
218 count_vm_events(SWPOUT_ZERO, nr_pages);
219 if (objcg) {
> 220 count_objcg_events(objcg, SWPOUT_ZERO, nr_pages);
221 obj_cgroup_put(objcg);
222 }
223 }
224
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2024-11-06 13: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=202411062114.V0749sXc-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=linux-mm@kvack.org \
--cc=nphamcs@gmail.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=v-songbaohua@oppo.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox