mm: hugetlb.c:5449:62: error: expected ';' before '{' token for_each_mem_pfn_range(i, nid, &start_pfn, &end_pfn, NULL)

From: Naresh Kamboju
Date: Wed Mar 18 2020 - 10:33:24 EST


Linux next build failed on arm beagleboard x15.

Build error:
/mm/hugetlb.c: In function 'hugetlb_cma_reserve':
/mm/hugetlb.c:5449:3: error: implicit declaration of function
'for_each_mem_pfn_range'; did you mean 'for_each_mem_range'?
[-Werror=implicit-function-declaration]
for_each_mem_pfn_range(i, nid, &start_pfn, &end_pfn, NULL) {
^~~~~~~~~~~~~~~~~~~~~~
for_each_mem_range
/mm/hugetlb.c:5449:62: error: expected ';' before '{' token
for_each_mem_pfn_range(i, nid, &start_pfn, &end_pfn, NULL) {

config:
http://snapshots.linaro.org/openembedded/lkft/lkft/sumo/am57xx-evm/lkft/linux-next/718/config
^
full build url:
https://ci.linaro.org/view/lkft/job/openembedded-lkft-linux-next/DISTRO=lkft,MACHINE=am57xx-evm,label=docker-lkft/727/consoleText

--
Linaro LKFT
https://lkft.linaro.org