From: Adrian Bunk Date: Mon, 28 Apr 2008 09:12:11 +0000 (-0700) Subject: make swap_pte_to_pagemap_entry() static X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9d02dbc8137759e4c2f91db0b7f9c8a1ec2a9276;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git make swap_pte_to_pagemap_entry() static Make the needlessly global swap_pte_to_pagemap_entry() static. Signed-off-by: Adrian Bunk Acked-by: Matt Mackall Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index 9dfb5ff2420..f4ab76c7c66 100644 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c @@ -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);