tree: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-unstable head: f96b65aa15baec616fffdb8f1d4fa3222aa56467 commit: 6cff2881e2e07e413e55610d7923c87f44e5f364 [24/80] memcg: use seq_buf_do_printk() with mem_cgroup_print_oom_meminfo() config: x86_64-randconfig-r011-20230501 (https://download.01.org/0day-ci/archive/20230506/202305061200.X0d5yEgk-lkp@xxxxxxxxx/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 # https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git/commit/?id=6cff2881e2e07e413e55610d7923c87f44e5f364 git remote add akpm-mm https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git git fetch --no-tags akpm-mm mm-unstable git checkout 6cff2881e2e07e413e55610d7923c87f44e5f364 # 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@xxxxxxxxx> | Link: https://lore.kernel.org/oe-kbuild-all/202305061200.X0d5yEgk-lkp@xxxxxxxxx/ All errors (new ones prefixed by >>): >> mm/memcontrol.c:1696:2: error: implicit declaration of function 'seq_buf_do_printk' is invalid in C99 [-Werror,-Wimplicit-function-declaration] seq_buf_do_printk(&s, KERN_INFO); ^ 1 error generated. vim +/seq_buf_do_printk +1696 mm/memcontrol.c 1661 1662 /** 1663 * mem_cgroup_print_oom_meminfo: Print OOM memory information relevant to 1664 * memory controller. 1665 * @memcg: The memory cgroup that went over limit 1666 */ 1667 void mem_cgroup_print_oom_meminfo(struct mem_cgroup *memcg) 1668 { 1669 /* Use static buffer, for the caller is holding oom_lock. */ 1670 static char buf[PAGE_SIZE]; 1671 struct seq_buf s; 1672 1673 lockdep_assert_held(&oom_lock); 1674 1675 pr_info("memory: usage %llukB, limit %llukB, failcnt %lu\n", 1676 K((u64)page_counter_read(&memcg->memory)), 1677 K((u64)READ_ONCE(memcg->memory.max)), memcg->memory.failcnt); 1678 if (cgroup_subsys_on_dfl(memory_cgrp_subsys)) 1679 pr_info("swap: usage %llukB, limit %llukB, failcnt %lu\n", 1680 K((u64)page_counter_read(&memcg->swap)), 1681 K((u64)READ_ONCE(memcg->swap.max)), memcg->swap.failcnt); 1682 else { 1683 pr_info("memory+swap: usage %llukB, limit %llukB, failcnt %lu\n", 1684 K((u64)page_counter_read(&memcg->memsw)), 1685 K((u64)memcg->memsw.max), memcg->memsw.failcnt); 1686 pr_info("kmem: usage %llukB, limit %llukB, failcnt %lu\n", 1687 K((u64)page_counter_read(&memcg->kmem)), 1688 K((u64)memcg->kmem.max), memcg->kmem.failcnt); 1689 } 1690 1691 pr_info("Memory cgroup stats for "); 1692 pr_cont_cgroup_path(memcg->css.cgroup); 1693 pr_cont(":"); 1694 seq_buf_init(&s, buf, sizeof(buf)); 1695 memory_stat_format(memcg, &s); > 1696 seq_buf_do_printk(&s, KERN_INFO); 1697 } 1698 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests