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/linu... ^ full build url: https://ci.linaro.org/view/lkft/job/openembedded-lkft-linux-next/DISTRO=lkft...
On Wed, Mar 18, 2020 at 08:03:09PM +0530, Naresh Kamboju wrote:
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: https://urldefense.proofpoint.com/v2/url?u=http-3A__snapshots.linaro.org_ope... ^ full build url: https://urldefense.proofpoint.com/v2/url?u=https-3A__ci.linaro.org_view_lkft...
-- Linaro LKFT https://urldefense.proofpoint.com/v2/url?u=https-3A__lkft.linaro.org&d=D...
Hello Naresh!
Thank you for the report!
We've been discussing the issue for a couple of days, and I've proposed a fix. I've just resent it to linux-mm@ (you're in cc), so hopefully it will be merged today.
Thanks!