mm/pgtable: remove unddefined __HAVE_ARCH_P4D_ALLOC_ONE/__HAVE_ARCH_P4D_FREE
Subsystems (2)
PATCH 1/1 mm/pgtable: remove unddefined __HAVE_ARCH_P4D_ALLOC_ONE/__HAVE_ARCH_P4D_FREE
From: Alex Shi <[email protected]>
No any archs has ever define __HAVE_ARCH_P4D_ALLOC_ONE/__HAVE_ARCH_P4D_FREE So let's remove them.
Signed-off-by Alex Shi <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Andrew Morton <[email protected]>
--- include/asm-generic/pgalloc.h | 4 ---- 1 file changed, 4 deletions(-)
include/asm-generic/pgalloc.h +0 -4
@@ -246,13 +246,11 @@ static inline p4d_t *__p4d_alloc_one_noprof(struct mm_struct *mm, unsigned long }#define __p4d_alloc_one (...) alloc_hooks(__p4d_alloc_one_noprof(__VA_ARGS__)) -#ifndef __HAVE_ARCH_P4D_ALLOC_ONEstatic inline p4d_t *p4d_alloc_one_noprof (struct mm_struct *mm,unsigned long addr) {return __p4d_alloc_one_noprof (mm, addr); }#define p4d_alloc_one (...) alloc_hooks(p4d_alloc_one_noprof(__VA_ARGS__)) -#endif static inline void __p4d_free (struct mm_struct *mm,p4d_t *p4d) {
@@ -262,13 +260,11 @@ static inline void __p4d_free(struct mm_struct *mm, p4d_t *p4d) pagetable_dtor_free(ptdesc); } -#ifndef __HAVE_ARCH_P4D_FREEstatic inline void p4d_free (struct mm_struct *mm,p4d_t *p4d) {if (!mm_p4d_folded (mm))__p4d_free (mm, p4d); } -#endif #endif /* CONFIG_PGTABLE_LEVELS > 4 */
Signature · 1 line
2.43.0
Quoted 4 lines · On Wed, Jan 07, 2026 at 02:39:10PM +0800, [email protected] wrote:
From: Alex Shi <[email protected]>
No any archs has ever define __HAVE_ARCH_P4D_ALLOC_ONE/__HAVE_ARCH_P4D_FREE So let's remove them.
No, let's not.