Skip to contentSkip to conversation

mm/huge_memory.c:1424:2: error: implicit declaration of function 'pmd_pgprot'

PATCH New Yuanhan Liu 1 participant 1 message Oct 18, 2012 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 59/85 mm/huge_memory.c:1424:2: error: implicit declaration of function 'pmd_pgprot'

Hi Peter,

JUST FYI, kernel build failed on

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
config: s390-allmodconfig # make ARCH=s390 allmodconfig

All error/warnings:

mm/huge_memory.c: In function '__split_huge_page_map':
mm/huge_memory.c:1424:2: error: implicit declaration of function 'pmd_pgprot' [-Werror=implicit-function-declaration] mm/huge_memory.c:1424:7: error: incompatible types when assigning to type 'pgprot_t' from type 'int'
cc1: some warnings being treated as errors

vim +1424 mm/huge_memory.c

71e3aac0 Andrea Arcangeli 2011-01-13  1418  	spin_lock(&mm->page_table_lock);
71e3aac0 Andrea Arcangeli 2011-01-13  1419  	pmd = page_check_address_pmd(page, mm, address,
71e3aac0 Andrea Arcangeli 2011-01-13  1420  				     PAGE_CHECK_ADDRESS_PMD_SPLITTING_FLAG);
93c9d633 Peter Zijlstra   2012-07-17  1421  	if (!pmd)
93c9d633 Peter Zijlstra   2012-07-17  1422  		goto unlock;
71e3aac0 Andrea Arcangeli 2011-01-13  1423  
93c9d633 Peter Zijlstra   2012-07-17 @1424  	prot = pmd_pgprot(*pmd);
64a863c8 Stephen Rothwell 2012-10-18  1425  	pgtable = pgtable_trans_huge_withdraw(mm);
93c9d633 Peter Zijlstra   2012-07-17  1426  	pmd_populate(mm, &_pmd, pgtable);

93c9d633 Peter Zijlstra 2012-07-17 1427

---
0-DAY kernel build testing backend Open Source Technology Center
Fengguang Wu, Yuanhan Liu Intel Corporation