From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:mirror-chromeos-5.10-arcvm 1/1] mm/vmscan.c:4621:5: warning: no previous prototype for 'print_node_mglru'
Date: Mon, 11 May 2026 20:43:22 +0800 [thread overview]
Message-ID: <202605112031.Skstf2w2-lkp@intel.com> (raw)
Hi Bryan,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/common mirror-chromeos-5.10-arcvm
head: 80e99694479e5e9fe7c6230aad1327bbb9c655be
commit: 2038834ed810ff10b875445a030663d659c69500 [1/1] CHROMIUM: Reland of add implementation of MGLRU in sysfs
config: arm64-randconfig-001-20260511 (https://download.01.org/0day-ci/archive/20260511/202605112031.Skstf2w2-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 14.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260511/202605112031.Skstf2w2-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/202605112031.Skstf2w2-lkp@intel.com/
All warnings (new ones prefixed by >>):
mm/vmscan.c:678:15: warning: no previous prototype for 'shrink_slab' [-Wmissing-prototypes]
678 | unsigned long shrink_slab(gfp_t gfp_mask, int nid,
| ^~~~~~~~~~~
>> mm/vmscan.c:4621:5: warning: no previous prototype for 'print_node_mglru' [-Wmissing-prototypes]
4621 | int print_node_mglru(struct lruvec *lruvec, char *buf, int orig_pos)
| ^~~~~~~~~~~~~~~~
mm/vmscan.c: In function 'show_lru_gen_admin':
mm/vmscan.c:4691:62: warning: format '%s' expects argument of type 'char *', but argument 5 has type 'void *' [-Wformat=]
4691 | "memcg %5hu %s\n", mem_cgroup_id(memcg), path);
| ~^ ~~~~
| | |
| char * void *
| %p
mm/vmscan.c:4702:21: warning: assignment to 'char *' from 'long unsigned int' makes pointer from integer without a cast [-Wint-conversion]
4702 | buf = PAGE_SIZE - 1;
| ^
vim +/print_node_mglru +4621 mm/vmscan.c
4620
> 4621 int print_node_mglru(struct lruvec *lruvec, char *buf, int orig_pos)
4622 {
4623 unsigned long seq;
4624 struct lrugen *lrugen = &lruvec->evictable;
4625
4626 DEFINE_MAX_SEQ(lruvec);
4627 DEFINE_MIN_SEQ(lruvec);
4628
4629 int print_pos = orig_pos;
4630
4631 seq = min(min_seq[0], min_seq[1]);
4632
4633 for (; seq <= max_seq; seq++) {
4634 int gen, type, zone;
4635 unsigned int msecs;
4636
4637 gen = lru_gen_from_seq(seq);
4638 msecs = jiffies_to_msecs(jiffies - READ_ONCE(lrugen->timestamps[gen]));
4639
4640 print_pos += snprintf(buf + print_pos, PAGE_SIZE - print_pos,
4641 " %10lu %10u", seq, msecs);
4642
4643 for (type = 0; type < ANON_AND_FILE; type++) {
4644 long size = 0;
4645
4646 if (seq < min_seq[type]) {
4647 print_pos += snprintf(buf + print_pos,
4648 PAGE_SIZE - print_pos, " -0 ");
4649 continue;
4650 }
4651
4652 for (zone = 0; zone < MAX_NR_ZONES; zone++)
4653 size += READ_ONCE(lrugen->sizes[gen][type][zone]);
4654
4655 print_pos += snprintf(buf + print_pos,
4656 PAGE_SIZE - print_pos, " %10lu ", max(size, 0L));
4657 }
4658
4659 print_pos += snprintf(buf + print_pos, PAGE_SIZE - print_pos, "\n");
4660
4661 }
4662
4663 return print_pos - orig_pos;
4664 }
4665
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
next reply other threads:[~2026-05-11 12:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-11 12:43 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-01-17 23:17 [android-common:mirror-chromeos-5.10-arcvm 1/1] mm/vmscan.c:4621:5: warning: no previous prototype for 'print_node_mglru' kernel test robot
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=202605112031.Skstf2w2-lkp@intel.com \
--to=lkp@intel.com \
--cc=cros-kernel-buildreports@googlegroups.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.