mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [chunkuang-hu:pagecaller 2/2] mm/vmstat.c:1551:25: error: implicit declaration of function 'kallsyms_lookup'
@ 2022-07-12 16:54 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-07-12 16:54 UTC (permalink / raw)
  To: Chun-Kuang Hu; +Cc: kbuild-all, linux-kernel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git pagecaller
head:   de987a7312cd3e22d7d6985225db9839c3bd9818
commit: de987a7312cd3e22d7d6985225db9839c3bd9818 [2/2] mm: vmstat: add pagecaller information
config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220713/202207130026.0vnQ1Yl0-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-3) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/commit/?id=de987a7312cd3e22d7d6985225db9839c3bd9818
        git remote add chunkuang-hu https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git
        git fetch --no-tags chunkuang-hu pagecaller
        git checkout de987a7312cd3e22d7d6985225db9839c3bd9818
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   mm/vmstat.c: In function 'dump_pagecaller':
>> mm/vmstat.c:1551:25: error: implicit declaration of function 'kallsyms_lookup' [-Werror=implicit-function-declaration]
    1551 |                         kallsyms_lookup(pagecaller[i], &symbolsize,
         |                         ^~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/kallsyms_lookup +1551 mm/vmstat.c

  1531	
  1532	static void dump_pagecaller(struct seq_file *m)
  1533	{
  1534		unsigned long i;
  1535	
  1536		seq_printf(m, "max_pfn = %lu\n", max_pfn);
  1537		seq_printf(m, "pagecaller_nr = %lu\n", pagecaller_nr);
  1538	
  1539		for (i = 0; i < pagecaller_nr; i++)
  1540			if (pagecaller[i] == 0) {
  1541				seq_printf(m, "0x%016lx %16lu [Free memory]\n",
  1542					   pagecaller[i], pagecaller_cnt[i] * 4);
  1543			} else if (pagecaller[i] == 0xffffffffffffffff) {
  1544				seq_printf(m, "0x%016lx %16lu [Reserved memory]\n",
  1545					   pagecaller[i], pagecaller_cnt[i] * 4);
  1546			} else {
  1547				char symbol[80];
  1548				unsigned long symbolsize;
  1549				unsigned long offset;
  1550				char *modname;
> 1551				kallsyms_lookup(pagecaller[i], &symbolsize,
  1552						&offset, &modname, symbol);
  1553				seq_printf(m, "0x%016lx %16lu %s\n", pagecaller[i],
  1554					   pagecaller_cnt[i] * 4, symbol);
  1555			}
  1556	}
  1557	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

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

only message in thread, other threads:[~2022-07-12 16:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-12 16:54 [chunkuang-hu:pagecaller 2/2] mm/vmstat.c:1551:25: error: implicit declaration of function 'kallsyms_lookup' 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

all inboxes | Powered by JetHome®