Jens Axboe 3e3126cf2a mm: only make map_swap_entry available for CONFIG_HIBERNATION
Current tree spews this on compile:

mm/swapfile.c:2290:17: warning: ‘map_swap_entry’ defined but not used [-Wunused-function]
 2290 | static sector_t map_swap_entry(swp_entry_t entry, struct block_device **bdev)
       |                 ^~~~~~~~~~~~~~

if !CONFIG_HIBERNATION, as we don't use the function unless we have that
config option set.

Fixes: 48d15436fde6 ("mm: remove get_swap_bio")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-01-27 10:04:49 -07:00
..
2021-01-24 10:34:52 -08:00
2020-12-15 12:13:47 -08:00
2020-12-22 12:55:09 -08:00
2021-01-24 09:20:52 -08:00
2020-12-15 14:48:04 -08:00
2020-12-18 12:38:28 -08:00
2020-12-29 15:36:49 -08:00
2021-01-27 09:51:49 -07:00
2020-12-15 14:48:04 -08:00
2020-12-15 13:22:29 -08:00
2020-12-15 12:13:41 -08:00
2020-12-15 14:48:04 -08:00
2020-12-15 12:13:47 -08:00
2020-11-19 10:36:36 +01:00