Skip to content

Commit 760885f

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu
Pull m68knommu fix from Greg Ungerer: "A single fix for breakage introduced in this merge window" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu: m68k: fix "bad page state" oops on ColdFire boot
2 parents fc36def + ecd6053 commit 760885f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arch/m68k/include/asm/mcf_pgalloc.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ extern inline pmd_t *pmd_alloc_kernel(pgd_t *pgd, unsigned long address)
4444
static inline void __pte_free_tlb(struct mmu_gather *tlb, pgtable_t page,
4545
unsigned long address)
4646
{
47+
pgtable_page_dtor(page);
4748
__free_page(page);
4849
}
4950

@@ -74,8 +75,9 @@ static inline struct page *pte_alloc_one(struct mm_struct *mm,
7475
return page;
7576
}
7677

77-
extern inline void pte_free(struct mm_struct *mm, struct page *page)
78+
static inline void pte_free(struct mm_struct *mm, struct page *page)
7879
{
80+
pgtable_page_dtor(page);
7981
__free_page(page);
8082
}
8183

0 commit comments

Comments
 (0)