All of lore.kernel.org
 help / color / mirror / Atom feed
* [chrome-os:chromeos-5.10 2/29] mm/vmscan.c:4914:5: warning: no previous prototype for 'print_node_mglru'
@ 2023-04-11 16:10 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-04-11 16:10 UTC (permalink / raw)
  To: cros-kernel-buildreports, Guenter Roeck; +Cc: oe-kbuild-all

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-04-11 16:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-11 16:10 [chrome-os:chromeos-5.10 2/29] mm/vmscan.c:4914:5: warning: no previous prototype for 'print_node_mglru' kernel test robot

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.