From: kernel test robot <lkp@intel.com>
To: xu.xin16@zte.com.cn, akpm@linux-foundation.org
Cc: oe-kbuild-all@lists.linux.dev, shakeel.butt@linux.dev,
hannes@cmpxchg.org, mhocko@kernel.org, roman.gushchin@linux.dev,
david@redhat.com, chengming.zhou@linux.dev,
muchun.song@linux.dev, linux-kernel@vger.kernel.org,
linux-mm@kvack.org, cgroups@vger.kernel.org, xu.xin16@zte.com.cn
Subject: Re: [PATCH v2 1/5] memcg: add per-memcg ksm_rmap_items stat
Date: Sun, 14 Sep 2025 21:54:25 +0800 [thread overview]
Message-ID: <202509142147.WQI0impC-lkp@intel.com> (raw)
In-Reply-To: <20250914180351288rcLuZnPAMUej48nuTc7KV@zte.com.cn>
Hi,
kernel test robot noticed the following build errors:
[auto build test ERROR on akpm-mm/mm-everything]
[also build test ERROR on tj-cgroup/for-next linus/master v6.17-rc5 next-20250912]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/xu-xin16-zte-com-cn/memcg-add-per-memcg-ksm_rmap_items-stat/20250914-181132
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/20250914180351288rcLuZnPAMUej48nuTc7KV%40zte.com.cn
patch subject: [PATCH v2 1/5] memcg: add per-memcg ksm_rmap_items stat
config: parisc-randconfig-001-20250914 (https://download.01.org/0day-ci/archive/20250914/202509142147.WQI0impC-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250914/202509142147.WQI0impC-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/202509142147.WQI0impC-lkp@intel.com/
All errors (new ones prefixed by >>):
mm/ksm.c: In function 'memcg_stat_ksm_show':
>> mm/ksm.c:3345:2: error: implicit declaration of function 'seq_buf_printf'; did you mean 'seq_bprintf'? [-Werror=implicit-function-declaration]
seq_buf_printf(s, "ksm_rmap_items %lu\n", ksm_stat.ksm_rmap_items);
^~~~~~~~~~~~~~
seq_bprintf
cc1: some warnings being treated as errors
vim +3345 mm/ksm.c
3329
3330 /* Show the ksm statistic count at memory.stat under cgroup mountpoint */
3331 void memcg_stat_ksm_show(struct mem_cgroup *memcg, struct seq_buf *s)
3332 {
3333 struct memcg_ksm_stat ksm_stat;
3334
3335 if (mem_cgroup_is_root(memcg)) {
3336 /* Just use the global counters when root memcg */
3337 ksm_stat.ksm_rmap_items = ksm_rmap_items;
3338 } else {
3339 /* Initialization */
3340 ksm_stat.ksm_rmap_items = 0;
3341 /* Summing all processes'ksm statistic items */
3342 mem_cgroup_scan_tasks(memcg, evaluate_memcg_ksm_stat, &ksm_stat);
3343 }
3344 /* Print memcg ksm statistic items */
> 3345 seq_buf_printf(s, "ksm_rmap_items %lu\n", ksm_stat.ksm_rmap_items);
3346 }
3347 #endif
3348
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next prev parent reply other threads:[~2025-09-14 13:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-14 10:00 [PATCH v2 0/5] memcg: Support per-memcg KSM metrics xu.xin16
2025-09-14 10:03 ` [PATCH v2 1/5] memcg: add per-memcg ksm_rmap_items stat xu.xin16
2025-09-14 13:54 ` kernel test robot [this message]
2025-09-14 10:05 ` [PATCH v2 2/5] memcg: show ksm_zero_pages count in memory.stat xu.xin16
2025-09-14 10:06 ` [PATCH v2 3/5] memcg: show ksm_merging_pages " xu.xin16
2025-09-14 10:07 ` [PATCH v2 4/5] memcg: add per-memcg ksm_profit xu.xin16
2025-09-14 13:02 ` kernel test robot
2025-09-14 10:09 ` [PATCH v2 5/5] Documentation: add KSM statistic counters description in cgroup-v2.rst xu.xin16
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=202509142147.WQI0impC-lkp@intel.com \
--to=lkp@intel.com \
--cc=akpm@linux-foundation.org \
--cc=cgroups@vger.kernel.org \
--cc=chengming.zhou@linux.dev \
--cc=david@redhat.com \
--cc=hannes@cmpxchg.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mhocko@kernel.org \
--cc=muchun.song@linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=roman.gushchin@linux.dev \
--cc=shakeel.butt@linux.dev \
--cc=xu.xin16@zte.com.cn \
/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.