Commit 9d02dbc8 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds

make swap_pte_to_pagemap_entry() static

Make the needlessly global swap_pte_to_pagemap_entry() static.
Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
Acked-by: default avatarMatt Mackall <mpm@selenic.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 3c18ddd1
...@@ -579,7 +579,7 @@ static int pagemap_pte_hole(unsigned long start, unsigned long end, ...@@ -579,7 +579,7 @@ static int pagemap_pte_hole(unsigned long start, unsigned long end,
return err; return err;
} }
u64 swap_pte_to_pagemap_entry(pte_t pte) static u64 swap_pte_to_pagemap_entry(pte_t pte)
{ {
swp_entry_t e = pte_to_swp_entry(pte); swp_entry_t e = pte_to_swp_entry(pte);
return swp_type(e) | (swp_offset(e) << MAX_SWAPFILES_SHIFT); return swp_type(e) | (swp_offset(e) << MAX_SWAPFILES_SHIFT);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment