提交 9d02dbc8 编写于 作者: A Adrian Bunk 提交者: Linus Torvalds

make swap_pte_to_pagemap_entry() static

Make the needlessly global swap_pte_to_pagemap_entry() static.
Signed-off-by: NAdrian Bunk <bunk@kernel.org>
Acked-by: NMatt Mackall <mpm@selenic.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册