[2.6 patch] m32r/mm/: cleanups

From: Adrian Bunk
Date: Thu Jun 12 2008 - 18:12:57 EST


This patch contains the following cleanups:
- make the following needlessly global code static:
- discontig.c: m32r_node_data[]
- init.c: reservedpages_count()
- remove the following unused code:
- mmu.S: m32r_itlb_entrys
- mmu.S: m32r_otlb_entrys

Signed-off-by: Adrian Bunk <bunk@xxxxxxxxxx>

---

arch/m32r/mm/discontig.c | 2 +-
arch/m32r/mm/init.c | 2 +-
arch/m32r/mm/mmu.S | 3 ---
3 files changed, 2 insertions(+), 5 deletions(-)

ca2709395882cca4328ddb10620f1a6ef4ddb070 diff --git a/arch/m32r/mm/discontig.c b/arch/m32r/mm/discontig.c
index 07c1af7..39d2e4e 100644
--- a/arch/m32r/mm/discontig.c
+++ b/arch/m32r/mm/discontig.c
@@ -22,7 +22,7 @@ struct pglist_data *node_data[MAX_NUMNODES];
EXPORT_SYMBOL(node_data);
static bootmem_data_t node_bdata[MAX_NUMNODES] __initdata;

-pg_data_t m32r_node_data[MAX_NUMNODES];
+static pg_data_t m32r_node_data[MAX_NUMNODES];

/* Memory profile */
typedef struct {
diff --git a/arch/m32r/mm/init.c b/arch/m32r/mm/init.c
index bbd97c8..2fdbc45 100644
--- a/arch/m32r/mm/init.c
+++ b/arch/m32r/mm/init.c
@@ -149,7 +149,7 @@ void __init paging_init(void)
hole_pages = zone_sizes_init();
}

-int __init reservedpages_count(void)
+static int __init reservedpages_count(void)
{
int reservedpages, nid, i;

diff --git a/arch/m32r/mm/mmu.S b/arch/m32r/mm/mmu.S
index 49a6d16..484b7ed 100644
--- a/arch/m32r/mm/mmu.S
+++ b/arch/m32r/mm/mmu.S
@@ -342,9 +342,6 @@ clear_tlb:
;;
jmp r14

-ENTRY(m32r_itlb_entrys)
-ENTRY(m32r_otlb_entrys)
-
#endif /* CONFIG_MMU */

.end

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/