2007-06-02 19:08:49

by Adrian Bunk

[permalink] [raw]
Subject: [2.6 patch] make arch/i386/mm/pgtable.c:pgd_{c,d}tor() static

pgd_{c,d}tor() can now become static.

Signed-off-by: Adrian Bunk <[email protected]>

---

arch/i386/mm/pgtable.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

--- linux-2.6.22-rc3-mm1/arch/i386/mm/pgtable.c.old 2007-06-02 19:16:38.000000000 +0200
+++ linux-2.6.22-rc3-mm1/arch/i386/mm/pgtable.c 2007-06-02 19:18:26.000000000 +0200
@@ -235,7 +235,7 @@

#if (PTRS_PER_PMD == 1)
/* Non-PAE pgd constructor */
-void pgd_ctor(void *pgd)
+static void pgd_ctor(void *pgd)
{
unsigned long flags;

@@ -257,7 +257,7 @@
}
#else /* PTRS_PER_PMD > 1 */
/* PAE pgd constructor */
-void pgd_ctor(void *pgd)
+static void pgd_ctor(void *pgd)
{
/* PAE, kernel PMD may be shared */

@@ -276,7 +276,7 @@
}
#endif /* PTRS_PER_PMD */

-void pgd_dtor(void *pgd)
+static void pgd_dtor(void *pgd)
{
unsigned long flags; /* can be called from interrupt context */



2007-06-02 23:26:54

by Christoph Lameter

[permalink] [raw]
Subject: Re: [2.6 patch] make arch/i386/mm/pgtable.c:pgd_{c,d}tor() static

On Sat, 2 Jun 2007, Adrian Bunk wrote:

> pgd_{c,d}tor() can now become static.
>
> Signed-off-by: Adrian Bunk <[email protected]>

Acked-by: Christoph Lameter <[email protected]>