make swap_pte_to_pagemap_entry() static

Make the needlessly global swap_pte_to_pagemap_entry() static.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Acked-by: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Adrian Bunk 2008-04-28 02:12:11 -07:00 committed by Linus Torvalds
parent 3c18ddd160
commit 9d02dbc813

View file

@ -579,7 +579,7 @@ static int pagemap_pte_hole(unsigned long start, unsigned long end,
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);
return swp_type(e) | (swp_offset(e) << MAX_SWAPFILES_SHIFT);