From 05019c4010bc17f7ccb5f2b43ae37da17ecc7a69 Mon Sep 17 00:00:00 2001 From: Larry Bassel Date: Tue, 10 May 2011 10:45:26 -0700 Subject: [PATCH] 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 (cherry picked from commit fe7d2ee21af00476fe9e578fcfea1c34a70bd30f) --- include/linux/memory_alloc.h | 5 ----- lib/memory_alloc.c | 3 +-- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/include/linux/memory_alloc.h b/include/linux/memory_alloc.h index c60afdefd88..88e64ce5740 100644 --- a/include/linux/memory_alloc.h +++ b/include/linux/memory_alloc.h @@ -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); diff --git a/lib/memory_alloc.c b/lib/memory_alloc.c index d854a2d096d..475dd2ce022 100644 --- a/lib/memory_alloc.c +++ b/lib/memory_alloc.c @@ -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)