Commit f9a1922e authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ppc32: remove 'mem_pieces_append'

From: Tom Rini <trini@kernel.crashing.org>

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

Remove mem_pieces_append, it is never used.
parent 7f543747
...@@ -120,23 +120,6 @@ mem_pieces_print(struct mem_pieces *mp) ...@@ -120,23 +120,6 @@ mem_pieces_print(struct mem_pieces *mp)
printk("\n"); 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 void __init
mem_pieces_sort(struct mem_pieces *mp) mem_pieces_sort(struct mem_pieces *mp)
{ {
......
...@@ -38,8 +38,6 @@ struct mem_pieces { ...@@ -38,8 +38,6 @@ struct mem_pieces {
extern void *mem_pieces_find(unsigned int size, unsigned int align); extern void *mem_pieces_find(unsigned int size, unsigned int align);
extern void mem_pieces_remove(struct mem_pieces *mp, unsigned int start, extern void mem_pieces_remove(struct mem_pieces *mp, unsigned int start,
unsigned int size, int must_exist); 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_coalesce(struct mem_pieces *mp);
extern void mem_pieces_sort(struct mem_pieces *mp); extern void mem_pieces_sort(struct mem_pieces *mp);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment