From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com,
Guenter Roeck <groeck@google.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [chrome-os:chromeos-5.10 2/29] mm/vmscan.c:4914:5: warning: no previous prototype for 'print_node_mglru'
Date: Wed, 12 Apr 2023 00:10:04 +0800 [thread overview]
Message-ID: <202304120020.FgsHXBQX-lkp@intel.com> (raw)
tree: https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-5.10
head: c27833f102ef632ef9410a1b1ce69a1ed9f2e48b
commit: d93c528012f08b5037cda48b14b73fc226943a4c [2/29] CHROMIUM: Implementation of MGLRU in sysfs
config: mips-allyesconfig (https://download.01.org/0day-ci/archive/20230412/202304120020.FgsHXBQX-lkp@intel.com/config)
compiler: mips-linux-gcc (GCC) 12.1.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add chrome-os https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-5.10
git checkout d93c528012f08b5037cda48b14b73fc226943a4c
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=mips olddefconfig
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=mips SHELL=/bin/bash
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202304120020.FgsHXBQX-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> mm/vmscan.c:4914:5: warning: no previous prototype for 'print_node_mglru' [-Wmissing-prototypes]
4914 | int print_node_mglru(struct lruvec *lruvec, char *buf, int orig_pos)
| ^~~~~~~~~~~~~~~~
vim +/print_node_mglru +4914 mm/vmscan.c
4913
> 4914 int print_node_mglru(struct lruvec *lruvec, char *buf, int orig_pos)
4915 {
4916 unsigned long seq;
4917 struct lru_gen_struct *lrugen = &lruvec->lrugen;
4918
4919 DEFINE_MAX_SEQ(lruvec);
4920 DEFINE_MIN_SEQ(lruvec);
4921
4922 int print_pos = orig_pos;
4923
4924 seq = min(min_seq[0], min_seq[1]);
4925
4926 for (; seq <= max_seq; seq++) {
4927 int gen, type, zone;
4928 unsigned int msecs;
4929
4930 gen = lru_gen_from_seq(seq);
4931 msecs = jiffies_to_msecs(jiffies - READ_ONCE(lrugen->timestamps[gen]));
4932
4933 print_pos += snprintf(buf + print_pos, PAGE_SIZE - print_pos,
4934 " %10lu %10u", seq, msecs);
4935
4936 for (type = 0; type < ANON_AND_FILE; type++) {
4937 long size = 0;
4938
4939 if (seq < min_seq[type]) {
4940 print_pos += snprintf(buf + print_pos,
4941 PAGE_SIZE - print_pos, " -0 ");
4942 continue;
4943 }
4944
4945 for (zone = 0; zone < MAX_NR_ZONES; zone++)
4946 size += READ_ONCE(lrugen->nr_pages[gen][type][zone]);
4947
4948 print_pos += snprintf(buf + print_pos,
4949 PAGE_SIZE - print_pos, " %10lu ", max(size, 0L));
4950 }
4951
4952 print_pos += snprintf(buf + print_pos, PAGE_SIZE - print_pos, "\n");
4953
4954 }
4955
4956 return print_pos - orig_pos;
4957 }
4958
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
reply other threads:[~2023-04-11 16:12 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=202304120020.FgsHXBQX-lkp@intel.com \
--to=lkp@intel.com \
--cc=cros-kernel-buildreports@googlegroups.com \
--cc=groeck@google.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.