Skip to content

Commit

Permalink
slob: Kill off duplicate kzalloc() definition.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
pmundt authored and Linus Torvalds committed Jul 18, 2007
1 parent 1985026 commit cb32da0
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions include/linux/slob_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit cb32da0

Please sign in to comment.