Skip to content

Commit

Permalink
pud_large -> pud_leaf
Browse files Browse the repository at this point in the history
  • Loading branch information
d-we committed Aug 4, 2024
1 parent 09c5f9b commit 56a5378
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions module/pteditor.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ static inline int pmd_large(pmd_t pmd) {
#define to_user copy_to_user
#endif

#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 6, 0)
#define pud_leaf pud_large
#define pmd_leaf pmd_large
#endif

#ifdef pr_fmt
#undef pr_fmt
#endif
Expand Down

0 comments on commit 56a5378

Please sign in to comment.