From: Paul Mundt Date: Wed, 18 Jul 2007 00:18:36 +0000 (+0900) Subject: slob: Kill off duplicate kzalloc() definition. X-Git-Tag: firefly_0821_release~27701 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cb32da0416b823b7f4b65e7e85d6cba16ca4d1e1;p=firefly-linux-kernel-4.4.55.git 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 Signed-off-by: Paul Mundt Signed-off-by: Linus Torvalds --- diff --git a/include/linux/slob_def.h b/include/linux/slob_def.h index a2daf2d418a9..59a3fa476ab9 100644 --- a/include/linux/slob_def.h +++ b/include/linux/slob_def.h @@ -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 */