From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx161.postini.com [74.125.245.161]) by kanga.kvack.org (Postfix) with SMTP id B18A66B006C for ; Thu, 10 Jan 2013 14:00:56 -0500 (EST) Message-Id: <0000013c25d617b5-527f8b9b-122e-4194-a83e-46f98a9a7e17-000000@email.amazonses.com> Date: Thu, 10 Jan 2013 19:00:53 +0000 From: Christoph Lameter Subject: REN2 [02/13] Move kmalloc related function defs References: <20130110190027.780479755@linux.com> Sender: owner-linux-mm@kvack.org List-ID: To: Pekka Enberg Cc: Joonsoo Kim , Glauber Costa , linux-mm@kvack.org, David Rientjes , elezegarcia@gmail.com Move these functions higher up in slab.h so that they are grouped with other generic kmalloc related definitions. Acked-by: Glauber Costa Signed-off-by: Christoph Lameter Index: linux/include/linux/slab.h =================================================================== --- linux.orig/include/linux/slab.h 2012-12-19 14:27:19.609963554 -0600 +++ linux/include/linux/slab.h 2013-01-07 14:45:19.688524176 -0600 @@ -148,6 +148,15 @@ void kmem_cache_free(struct kmem_cache * (__flags), NULL) /* + * Common kmalloc functions provided by all allocators + */ +void * __must_check __krealloc(const void *, size_t, gfp_t); +void * __must_check krealloc(const void *, size_t, gfp_t); +void kfree(const void *); +void kzfree(const void *); +size_t ksize(const void *); + +/* * The largest kmalloc size supported by the slab allocators is * 32 megabyte (2^25) or the maximum allocatable page order if that is * less than 32 MB. @@ -225,15 +234,6 @@ int cache_show(struct kmem_cache *s, str void print_slabinfo_header(struct seq_file *m); /* - * Common kmalloc functions provided by all allocators - */ -void * __must_check __krealloc(const void *, size_t, gfp_t); -void * __must_check krealloc(const void *, size_t, gfp_t); -void kfree(const void *); -void kzfree(const void *); -size_t ksize(const void *); - -/* * Allocator specific definitions. These are mainly used to establish optimized * ways to convert kmalloc() calls to kmem_cache_alloc() invocations by * selecting the appropriate general cache at compile time. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org