Skip to content

Commit 56a5378

Browse files
committed
pud_large -> pud_leaf
1 parent 09c5f9b commit 56a5378

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

module/pteditor.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ static inline int pmd_large(pmd_t pmd) {
9696
#define to_user copy_to_user
9797
#endif
9898

99+
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
100+
#define pud_leaf pud_large
101+
#define pmd_leaf pmd_large
102+
#endif
103+
99104
#ifdef pr_fmt
100105
#undef pr_fmt
101106
#endif

0 commit comments

Comments
 (0)