tree: feng/master
head: 06bff35130fa1539e775d6dcef3b9a430eb1a96e
commit: f3f0fe74c2b69c3355eee038ba1e97f72464e012 [7/9] zonelist: add dump
config: arm-at91_dt_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 f3f0fe74c2b69c3355eee038ba1e97f72464e012
# 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/page_alloc.c: In function '__alloc_pages_nodemask':
> mm/page_alloc.c:4761:6: error: 'watchdog_thresh'
undeclared (first use in this function); did you mean 'proc_watchdog_thresh'?
if (watchdog_thresh == 20) {
^~~~~~~~~~~~~~~
proc_watchdog_thresh
mm/page_alloc.c:4761:6: note: each undeclared identifier is reported only once for each
function it appears in
In file included from include/asm-generic/bug.h:19:0,
from arch/arm/include/asm/bug.h:60,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/mm.h:9,
from mm/page_alloc.c:19:
mm/page_alloc.c:4768:34: error: 'struct zone' has no member named
'node'; did you mean 'name'?
ac.preferred_zoneref->zone->node,
^
include/linux/kernel.h:130:43: note: in definition of macro 'mtp'
trace_printk(KERN_ERR "" f "\n",##x)
^
mm/page_alloc.c:4803:20: error: 'struct zone' has no member named
'node'; did you mean 'name'?
zrefs->zone->node,
^~~~
name
vim +4761 mm/page_alloc.c
4725
4726 /*
4727 * This is the 'heart' of the zoned buddy allocator.
4728 */
4729 struct page *
4730 __alloc_pages_nodemask(gfp_t gfp_mask, unsigned int order, int preferred_nid,
4731 nodemask_t *nodemask)
4732 {
4733 struct page *page;
4734 unsigned int alloc_flags = ALLOC_WMARK_LOW;
4735 gfp_t alloc_mask; /* The gfp_t that was actually used for allocation */
4736 struct alloc_context ac = { };
4737
4738
4739 /*
4740 * There are several places where we assume that the order value is sane
4741 * so bail out early if the request is out of bound.
4742 */
4743 if (unlikely(order >= MAX_ORDER)) {
4744 WARN_ON_ONCE(!(gfp_mask & __GFP_NOWARN));
4745 return NULL;
4746 }
4747
4748 gfp_mask &= gfp_allowed_mask;
4749 alloc_mask = gfp_mask;
4750 if (!prepare_alloc_pages(gfp_mask, order, preferred_nid, nodemask, &ac,
&alloc_mask, &alloc_flags))
4751 return NULL;
4752
4753 finalise_ac(gfp_mask, &ac);
4754
4755 /*
4756 * Forbid the first pass from falling back to types that fragment
4757 * memory until all local zones are considered.
4758 */
4759 alloc_flags |= alloc_flags_nofragment(ac.preferred_zoneref->zone, gfp_mask);
4760
4761 if (watchdog_thresh == 20) {
4762
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation