--- a/include/linux/swap.h~mm-swap-make-swap_address_space-an-inline-function +++ a/include/linux/swap.h @@ -537,7 +537,11 @@ static inline void put_swap_device(struc { } -#define swap_address_space(entry) (NULL) +static inline struct address_space *swap_address_space(swp_entry_t entry) +{ + return NULL; +} + #define get_nr_swap_pages() 0L #define total_swap_pages 0L #define total_swapcache_pages() 0UL