diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-05-24 19:17:10 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-09-30 16:46:02 +0200 |
commit | 44fa036030209e6a8449a8f6c9fd2dd948093475 (patch) | |
tree | 0af17ac30dfc8d243cc0625a595d6492a7cdafe5 | |
parent | crash_dump: always include UAPI header (diff) | |
download | rhel7-kernel-misery-44fa036030209e6a8449a8f6c9fd2dd948093475.tar.xz rhel7-kernel-misery-44fa036030209e6a8449a8f6c9fd2dd948093475.zip |
huge_mm: define trans_huge_mmu_gather_count stub function
When huge pages are not enabled, swap still needs to have a stub version
of this function to prevent a compiler error.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | include/linux/huge_mm.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/huge_mm.h b/include/linux/huge_mm.h index b608e46a3b5..2863450175a 100644 --- a/include/linux/huge_mm.h +++ b/include/linux/huge_mm.h @@ -382,6 +382,11 @@ static inline struct page *trans_huge_page_release_decode(struct page *page) return page; } +static inline int trans_huge_mmu_gather_count(struct page *page) +{ + return 0; +} + extern void dec_trans_huge_mmu_gather_count(struct page *page); extern bool is_huge_zero_page_release(struct page *page); |