tree: git://git.cmpxchg.org/linux-mmotm.git master head: 7ac3c89cefd1b5921627ca63424d01e5b9a2810b commit: dc181540884937ac4cdcb9e9e563a209d2d8eef7 [42/137] mm: memcontrol: lockless page counters config: ia64-allmodconfig (attached as .config) reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git checkout dc181540884937ac4cdcb9e9e563a209d2d8eef7 # save the attached .config to linux build tree make.cross ARCH=ia64 All error/warnings: In file included from mm/page_counter.c:7:0: include/linux/page_counter.h: In function 'page_counter_init': >> include/linux/page_counter.h:19:27: error: 'LONG_MAX' undeclared (first use in this function) #define PAGE_COUNTER_MAX (LONG_MAX / PAGE_SIZE) ^ >> include/linux/page_counter.h:26:19: note: in expansion of macro 'PAGE_COUNTER_MAX' counter->limit = PAGE_COUNTER_MAX; ^ include/linux/page_counter.h:19:27: note: each undeclared identifier is reported only once for each function it appears in #define PAGE_COUNTER_MAX (LONG_MAX / PAGE_SIZE) ^ >> include/linux/page_counter.h:26:19: note: in expansion of macro 'PAGE_COUNTER_MAX' counter->limit = PAGE_COUNTER_MAX; ^ >> include/linux/page_counter.h:19:38: error: 'PAGE_SIZE' undeclared (first use in this function) #define PAGE_COUNTER_MAX (LONG_MAX / PAGE_SIZE) ^ >> include/linux/page_counter.h:26:19: note: in expansion of macro 'PAGE_COUNTER_MAX' counter->limit = PAGE_COUNTER_MAX; ^ vim +/LONG_MAX +19 include/linux/page_counter.h 13 unsigned long failcnt; 14 }; 15 16 #if BITS_PER_LONG == 32 17 #define PAGE_COUNTER_MAX LONG_MAX 18 #else 19 #define PAGE_COUNTER_MAX (LONG_MAX / PAGE_SIZE) 20 #endif 21 22 static inline void page_counter_init(struct page_counter *counter, 23 struct page_counter *parent) 24 { 25 atomic_long_set(&counter->count, 0); 26 counter->limit = PAGE_COUNTER_MAX; 27 counter->parent = parent; 28 } 29 --- 0-DAY kernel build testing backend Open Source Technology Center http://lists.01.org/mailman/listinfo/kbuild Intel Corporation