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)