diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2012-12-10 03:50:57 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-17 22:37:03 -0500 |
commit | ce4a9cc579381bc70b12ebb91c57da31baf8e3b7 (patch) | |
tree | 4d269c7fb957062812bfe9deef8834ed98ea6afd /mm | |
parent | 6a2b60b17b3e48a418695a94bd2420f6ab32e519 (diff) |
mm,numa: fix update_mmu_cache_pmd call
This build error is currently hidden by the fact that the x86
implementation of 'update_mmu_cache_pmd()' is a macro that doesn't use
its last argument, but commit b32967ff101a ("mm: numa: Add THP migration
for the NUMA working set scanning fault case") introduced a call with
the wrong third argument.
In the akpm tree, it causes this build error:
mm/migrate.c: In function 'migrate_misplaced_transhuge_page_put':
mm/migrate.c:1666:2: error: incompatible type for argument 3 of 'update_mmu_cache_pmd'
arch/x86/include/asm/pgtable.h:792:20: note: expected 'struct pmd_t *' but argument is of type 'pmd_t'
Fix it.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/migrate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/migrate.c b/mm/migrate.c index 32efd8028bc9..3b676b0c5c3e 100644 --- a/mm/migrate.c +++ b/mm/migrate.c | |||
@@ -1734,7 +1734,7 @@ int migrate_misplaced_transhuge_page(struct mm_struct *mm, | |||
1734 | page_add_new_anon_rmap(new_page, vma, haddr); | 1734 | page_add_new_anon_rmap(new_page, vma, haddr); |
1735 | 1735 | ||
1736 | set_pmd_at(mm, haddr, pmd, entry); | 1736 | set_pmd_at(mm, haddr, pmd, entry); |
1737 | update_mmu_cache_pmd(vma, address, entry); | 1737 | update_mmu_cache_pmd(vma, address, &entry); |
1738 | page_remove_rmap(page); | 1738 | page_remove_rmap(page); |
1739 | /* | 1739 | /* |
1740 | * Finish the charge transaction under the page table lock to | 1740 | * Finish the charge transaction under the page table lock to |