Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb32da04 authored by Paul Mundt's avatar Paul Mundt Committed by Linus Torvalds
Browse files

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: default avatarJan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 1985026d
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -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 */