Re: [2.6 patch] make swap_pte_to_pagemap_entry() static
On Wed, 2008-02-13 at 23:30 +0200, Adrian Bunk wrote: > This patch makes the needlessly global swap_pte_to_pagemap_entry() > static. > > Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> Thanks. Signed-off-by: Matt Mackall <[EMAIL PROTECTED]> -- Mathematics is the supreme nostalgia of our time. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[2.6 patch] make swap_pte_to_pagemap_entry() static
This patch makes the needlessly global swap_pte_to_pagemap_entry() static. Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]> --- a4b8dad3d2a846220277c79db64230b9e81bf99f diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index ae4d3f2..6afde39 100644 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c @@ -571,7 +571,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 PM_SWAP | swp_type(e) | (swp_offset(e) << MAX_SWAPFILES_SHIFT); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[2.6 patch] make swap_pte_to_pagemap_entry() static
This patch makes the needlessly global swap_pte_to_pagemap_entry() static. Signed-off-by: Adrian Bunk [EMAIL PROTECTED] --- a4b8dad3d2a846220277c79db64230b9e81bf99f diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c index ae4d3f2..6afde39 100644 --- a/fs/proc/task_mmu.c +++ b/fs/proc/task_mmu.c @@ -571,7 +571,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 PM_SWAP | swp_type(e) | (swp_offset(e) MAX_SWAPFILES_SHIFT); -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: [2.6 patch] make swap_pte_to_pagemap_entry() static
On Wed, 2008-02-13 at 23:30 +0200, Adrian Bunk wrote: This patch makes the needlessly global swap_pte_to_pagemap_entry() static. Signed-off-by: Adrian Bunk [EMAIL PROTECTED] Thanks. Signed-off-by: Matt Mackall [EMAIL PROTECTED] -- Mathematics is the supreme nostalgia of our time. -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/