Skip to content

Commit 9922c1d

Browse files
rppttorvalds
authored andcommitted
asm-generic: pgalloc.h: use correct #ifdef to enable pud_alloc_one()
The #ifdef statement that guards the generic version of pud_alloc_one() by mistake used __HAVE_ARCH_PUD_FREE instead of __HAVE_ARCH_PUD_ALLOC_ONE. Fix it. Fixes: d9e8b92 ("asm-generic: pgalloc: provide generic pud_alloc_one() and pud_free_one()") Reported-by: kernel test robot <[email protected]> Signed-off-by: Mike Rapoport <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Linus Torvalds <[email protected]>
1 parent b923f12 commit 9922c1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/asm-generic/pgalloc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd)
147147

148148
#if CONFIG_PGTABLE_LEVELS > 3
149149

150-
#ifndef __HAVE_ARCH_PUD_FREE
150+
#ifndef __HAVE_ARCH_PUD_ALLOC_ONE
151151
/**
152152
* pud_alloc_one - allocate a page for PUD-level page table
153153
* @mm: the mm_struct of the current context

0 commit comments

Comments
 (0)