LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [2.6 patch] make swap_pte_to_pagemap_entry() static
@ 2008-02-13 21:30 Adrian Bunk
2008-02-13 21:32 ` Matt Mackall
0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2008-02-13 21:30 UTC (permalink / raw)
To: Matt Mackall; +Cc: linux-kernel
This patch makes the needlessly global swap_pte_to_pagemap_entry()
static.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
---
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);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [2.6 patch] make swap_pte_to_pagemap_entry() static
2008-02-13 21:30 [2.6 patch] make swap_pte_to_pagemap_entry() static Adrian Bunk
@ 2008-02-13 21:32 ` Matt Mackall
0 siblings, 0 replies; 2+ messages in thread
From: Matt Mackall @ 2008-02-13 21:32 UTC (permalink / raw)
To: Adrian Bunk; +Cc: linux-kernel
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 <bunk@kernel.org>
Thanks.
Signed-off-by: Matt Mackall <mpm@selenic.com>
--
Mathematics is the supreme nostalgia of our time.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-02-13 21:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-13 21:30 [2.6 patch] make swap_pte_to_pagemap_entry() static Adrian Bunk
2008-02-13 21:32 ` Matt Mackall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).