On Fri, 1 Feb 2019 02:57:08 +0800 kbuild test robot <lkp@xxxxxxxxx> wrote: > tree: git://git.cmpxchg.org/linux-mmotm.git master > head: a4186de8d65ec2ca6c39070ef1d6795a0b4ffe04 > commit: 471431309f7656128a65d6df0c5c47ed112635a0 [203/305] mm: memcontrol: expose THP events on a per-memcg basis > config: ia64-allmodconfig (attached as .config) > compiler: ia64-linux-gcc (GCC) 8.2.0 > reproduce: > wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross > chmod +x ~/bin/make.cross > git checkout 471431309f7656128a65d6df0c5c47ed112635a0 > # save the attached .config to linux build tree > GCC_VERSION=8.2.0 make.cross ARCH=ia64 > > All errors (new ones prefixed by >>): > > mm/memcontrol.c: In function 'memory_stat_show': > >> mm/memcontrol.c:5629:52: error: 'THP_FAULT_ALLOC' undeclared (first use in this function); did you mean 'THP_FILE_ALLOC'? > seq_printf(m, "thp_fault_alloc %lu\n", acc.events[THP_FAULT_ALLOC]); > ^~~~~~~~~~~~~~~ > THP_FILE_ALLOC > mm/memcontrol.c:5629:52: note: each undeclared identifier is reported only once for each function it appears in > >> mm/memcontrol.c:5631:17: error: 'THP_COLLAPSE_ALLOC' undeclared (first use in this function); did you mean 'THP_FILE_ALLOC'? > acc.events[THP_COLLAPSE_ALLOC]); > ^~~~~~~~~~~~~~~~~~ > THP_FILE_ALLOC Thanks. This, I assume: --- a/mm/memcontrol.c~mm-memcontrol-expose-thp-events-on-a-per-memcg-basis-fix +++ a/mm/memcontrol.c @@ -39,6 +39,7 @@ #include <linux/shmem_fs.h> #include <linux/hugetlb.h> #include <linux/pagemap.h> +#include <linux/vm_event_item.h> #include <linux/smp.h> #include <linux/page-flags.h> #include <linux/backing-dev.h> _