]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
slob: Kill off duplicate kzalloc() definition.
authorPaul Mundt <lethal@linux-sh.org>
Wed, 18 Jul 2007 00:18:36 +0000 (09:18 +0900)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 18 Jul 2007 00:26:43 +0000 (17:26 -0700)
With the slab zeroing allocations cleanups Christoph stubbed in a generic
kzalloc(), which was missed on SLOB. Follow the SLAB/SLUB changes and
kill off the __kzalloc() wrapper that SLOB was using.

Reported-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/slob_def.h

index a2daf2d418a9dbdc50674529671dee07c6fbc9c6..59a3fa476ab9f7afe3f407c72b616c23143324a7 100644 (file)
@@ -33,14 +33,4 @@ static inline void *__kmalloc(size_t size, gfp_t flags)
        return kmalloc(size, flags);
 }
 
-/**
- * kzalloc - allocate memory. The memory is set to zero.
- * @size: how many bytes of memory are required.
- * @flags: the type of memory to allocate (see kcalloc).
- */
-static inline void *kzalloc(size_t size, gfp_t flags)
-{
-       return __kzalloc(size, flags);
-}
-
 #endif /* __LINUX_SLOB_DEF_H */