Skip to content

Commit cb32da0

Browse files
pmundtLinus Torvalds
authored andcommitted
slob: Kill off duplicate kzalloc() definition.
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>
1 parent 1985026 commit cb32da0

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

include/linux/slob_def.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,4 @@ static inline void *__kmalloc(size_t size, gfp_t flags)
3333
return kmalloc(size, flags);
3434
}
3535

36-
/**
37-
* kzalloc - allocate memory. The memory is set to zero.
38-
* @size: how many bytes of memory are required.
39-
* @flags: the type of memory to allocate (see kcalloc).
40-
*/
41-
static inline void *kzalloc(size_t size, gfp_t flags)
42-
{
43-
return __kzalloc(size, flags);
44-
}
45-
4636
#endif /* __LINUX_SLOB_DEF_H */

0 commit comments

Comments
 (0)