diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/swapops.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/swapops.h b/include/linux/swapops.h index 7bf2d149d20..6ec39ab27b4 100644 --- a/include/linux/swapops.h +++ b/include/linux/swapops.h @@ -42,11 +42,13 @@ static inline pgoff_t swp_offset(swp_entry_t entry) return entry.val & SWP_OFFSET_MASK(entry); } +#ifdef CONFIG_MMU /* check whether a pte points to a swap entry */ static inline int is_swap_pte(pte_t pte) { return !pte_none(pte) && !pte_present(pte) && !pte_file(pte); } +#endif /* * Convert the arch-dependent pte representation of a swp_entry_t into an |