aboutsummaryrefslogtreecommitdiffstats
path: root/arch/um/include/asm/pgalloc.h
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.com>2025-01-20 09:58:12 +0100
committerJiri Kosina <jkosina@suse.com>2025-01-20 09:58:12 +0100
commit670af65d2ab4a6a9bb72f014b080757e291ad3fe (patch)
treed54ccf4ba52fa9f15ed8f1de6214edc53e1502be /arch/um/include/asm/pgalloc.h
parentHID: hid-asus: Disable OOBE mode on the ProArt P16 (diff)
parentHID: roccat: pyro: constify 'struct bin_attribute' (diff)
downloadlinux-670af65d2ab4a6a9bb72f014b080757e291ad3fe.tar.gz
linux-670af65d2ab4a6a9bb72f014b080757e291ad3fe.zip
Merge branch 'for-6.14/constify-bin-attribute' into for-linus
- constification of 'struct bin_attribute' in various HID driver (Thomas Weißschuh)
Diffstat (limited to 'arch/um/include/asm/pgalloc.h')
-rw-r--r--arch/um/include/asm/pgalloc.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/um/include/asm/pgalloc.h b/arch/um/include/asm/pgalloc.h
index de5e31c64793..04fb4e6969a4 100644
--- a/arch/um/include/asm/pgalloc.h
+++ b/arch/um/include/asm/pgalloc.h
@@ -31,7 +31,7 @@ do { \
tlb_remove_page_ptdesc((tlb), (page_ptdesc(pte))); \
} while (0)
-#ifdef CONFIG_3_LEVEL_PGTABLES
+#if CONFIG_PGTABLE_LEVELS > 2
#define __pmd_free_tlb(tlb, pmd, address) \
do { \
@@ -39,6 +39,15 @@ do { \
tlb_remove_page_ptdesc((tlb), virt_to_ptdesc(pmd)); \
} while (0)
+#if CONFIG_PGTABLE_LEVELS > 3
+
+#define __pud_free_tlb(tlb, pud, address) \
+do { \
+ pagetable_pud_dtor(virt_to_ptdesc(pud)); \
+ tlb_remove_page_ptdesc((tlb), virt_to_ptdesc(pud)); \
+} while (0)
+
+#endif
#endif
#endif