]> git.baikalelectronics.ru Git - kernel.git/commit
slub: Add dummy functions for the !SLUB_DEBUG case
authorChristoph Lameter <cl@linux.com>
Wed, 25 Aug 2010 19:07:16 +0000 (14:07 -0500)
committerPekka Enberg <penberg@kernel.org>
Sat, 2 Oct 2010 07:24:28 +0000 (10:24 +0300)
commiteddac63cf109e76684107553ca910de1c0b21ef1
tree04809fc2db67542b2a736ca6b130981514911bf2
parentcd305a283dbe5d0efbe7e0b99e32be51d5a66917
slub: Add dummy functions for the !SLUB_DEBUG case

On Wed, 25 Aug 2010, Randy Dunlap wrote:
> mm/slub.c:1732: error: implicit declaration of function 'slab_pre_alloc_hook'
> mm/slub.c:1751: error: implicit declaration of function 'slab_post_alloc_hook'
> mm/slub.c:1881: error: implicit declaration of function 'slab_free_hook'
> mm/slub.c:1886: error: implicit declaration of function 'slab_free_hook_irq'

Empty functions are missing if the runtime debuggability option is compiled
out.

Provide the fall back functions to empty hooks if SLUB_DEBUG is not set.

Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
mm/slub.c