tree:
https://github.com/zen-kernel/zen-kernel 5.4/zen-sauce
head: c9a8f36311f14311a3202501c88009f758683c0f
commit: 92f669d8f5542fe3981115706a7b9066a0903b4a [14/15] mm: Proactive compaction
config: arm-bcm2835_defconfig (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 7.4.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 92f669d8f5542fe3981115706a7b9066a0903b4a
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
mm/compaction.c: In function 'extfrag_hpage_wmark':
> mm/compaction.c:1865:33: error: 'HUGETLB_PAGE_ORDER'
undeclared (first use in this function); did you mean 'HPAGE_PMD_ORDER'?
return extfrag_for_order(zone, HUGETLB_PAGE_ORDER) > wmark;
^~~~~~~~~~~~~~~~~~
HPAGE_PMD_ORDER
mm/compaction.c:1865:33: note: each undeclared identifier is reported only once for
each function it appears in
mm/compaction.c: In function 'node_hpage_should_compact':
mm/compaction.c:1874:30: error: 'HUGETLB_PAGE_ORDER' undeclared (first use in
this function); did you mean 'HPAGE_PMD_ORDER'?
compaction_suitable(zone, HUGETLB_PAGE_ORDER,
^~~~~~~~~~~~~~~~~~
HPAGE_PMD_ORDER
mm/compaction.c: In function 'extfrag_hpage_wmark':
mm/compaction.c:1866:1: warning: control reaches end of non-void function
[-Wreturn-type]
}
^
vim +1865 mm/compaction.c
1856
1857 static unsigned int extfrag_hpage_wmark(struct zone *zone, bool low)
1858 {
1859 int node_id, wmark, wmark_low;
1860
1861 node_id = zone->zone_pgdat->node_id;
1862 wmark_low = 100 - compaction_states[node_id].hpage_compaction_effort;
1863 wmark = low ? wmark_low : min(wmark_low + 10, 100);
1864
1865 return extfrag_for_order(zone, HUGETLB_PAGE_ORDER) > wmark;
1866 }
1867
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation