summaryrefslogtreecommitdiff
path: root/mm/vmpressure.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2021-01-27 10:04:49 -0700
committerJens Axboe <axboe@kernel.dk>2021-01-27 10:04:49 -0700
commit3e3126cf2a6d0afa4c013574df621d08f08d3912 (patch)
tree566a779cfbd9bb7baec2f71645d1274ffab70580 /mm/vmpressure.c
parent48d15436fde6feebcded7bd0fdc8ea4a9181b8fa (diff)
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>
Diffstat (limited to 'mm/vmpressure.c')
0 files changed, 0 insertions, 0 deletions