oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [chrome-os:chromeos-5.10 2/18] mm/vmscan.c:4914:5: warning: no previous prototype for function 'print_node_mglru'
@ 2023-04-11  4:22 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-04-11  4:22 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:   2334558ddfcc49430baece1143367805ca186f3b
commit: d93c528012f08b5037cda48b14b73fc226943a4c [2/18] CHROMIUM: Implementation of MGLRU in sysfs
config: x86_64-randconfig-a004-20230410 (https://download.01.org/0day-ci/archive/20230411/202304111204.jkXKMpQB-lkp@intel.com/config)
compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1)
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=clang make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 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/202304111204.jkXKMpQB-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> mm/vmscan.c:4914:5: warning: no previous prototype for function 'print_node_mglru' [-Wmissing-prototypes]
   int print_node_mglru(struct lruvec *lruvec, char *buf, int orig_pos)
       ^
   mm/vmscan.c:4914:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int print_node_mglru(struct lruvec *lruvec, char *buf, int orig_pos)
   ^
   static 
   1 warning generated.


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  4:22 UTC | newest]

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).