[PATCH][PPC32] Remove 'mem_pieces_append'

From: Tom Rini
Date: Mon May 17 2004 - 12:56:20 EST


Remove mem_pieces_append, it is never used.

>From Fabian.Frederick <Fabian.Frederick&prov-liege.be>

arch/ppc/mm/mem_pieces.c | 17 -----------------
arch/ppc/mm/mem_pieces.h | 2 --
2 files changed, 19 deletions(-)
--- 1.9/arch/ppc/mm/mem_pieces.c Fri Sep 12 09:26:53 2003
+++ edited/arch/ppc/mm/mem_pieces.c Fri May 7 15:58:55 2004
@@ -120,23 +120,6 @@
printk("\n");
}

-#if defined(CONFIG_APUS) || defined(CONFIG_PPC_OF)
-/*
- * Add some memory to an array of pieces
- */
-void __init
-mem_pieces_append(struct mem_pieces *mp, unsigned int start, unsigned int size)
-{
- struct reg_property *rp;
-
- if (mp->n_regions >= MEM_PIECES_MAX)
- return;
- rp = &mp->regions[mp->n_regions++];
- rp->address = start;
- rp->size = size;
-}
-#endif /* CONFIG_APUS || CONFIG_PPC_OF */
-
void __init
mem_pieces_sort(struct mem_pieces *mp)
{
--- 1.4/arch/ppc/mm/mem_pieces.h Tue Feb 25 10:44:20 2003
+++ edited/arch/ppc/mm/mem_pieces.h Fri May 7 15:58:58 2004
@@ -38,8 +38,6 @@
extern void *mem_pieces_find(unsigned int size, unsigned int align);
extern void mem_pieces_remove(struct mem_pieces *mp, unsigned int start,
unsigned int size, int must_exist);
-extern void mem_pieces_append(struct mem_pieces *mp, unsigned int start,
- unsigned int size);
extern void mem_pieces_coalesce(struct mem_pieces *mp);
extern void mem_pieces_sort(struct mem_pieces *mp);


--
Tom Rini
http://gate.crashing.org/~trini/
-
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/