lib: remove extraneous exports and function prototypes

Remove the function prototype for the function
alloc_from_memory_pool() (this function was never implemented).
The function mem_type_to_memory_pool() was not intended to be
exported, so remove the export and function prototypes.

Change-Id: Iac47d5c8a8aaf21554c2a7a56f42d6f7de689d3e
Signed-off-by: Larry Bassel <lbassel@codeaurora.org>
(cherry picked from commit fe7d2ee21af00476fe9e578fcfea1c34a70bd30f)
This commit is contained in:
Larry Bassel
2011-05-10 10:45:26 -07:00
committed by Stephen Boyd
parent d9483c7058
commit 05019c4010
2 changed files with 1 additions and 7 deletions

View File

@@ -33,14 +33,9 @@ struct alloc {
unsigned long len;
};
struct mem_pool *mem_type_to_memory_pool(int mem_type);
struct mem_pool *initialize_memory_pool(unsigned long start,
unsigned long size, int mem_type);
void *alloc_from_memory_pool(struct mem_pool *mpool, unsigned long size,
unsigned long align, int cached);
void *allocate_contiguous_memory(unsigned long size,
int mem_type, unsigned long align, int cached);

View File

@@ -174,7 +174,7 @@ static void __free(void *vaddr, bool unmap)
kfree(node);
}
struct mem_pool *mem_type_to_memory_pool(int mem_type)
static struct mem_pool *mem_type_to_memory_pool(int mem_type)
{
struct mem_pool *mpool = &mpools[mem_type];
@@ -190,7 +190,6 @@ struct mem_pool *mem_type_to_memory_pool(int mem_type)
return mpool;
}
EXPORT_SYMBOL_GPL(mem_type_to_memory_pool);
struct mem_pool *initialize_memory_pool(unsigned long start,
unsigned long size, int mem_type)