From: Christoph Lameter Date: Sun, 1 Jul 2007 19:06:35 +0000 (-0700) Subject: SLAB: remove WARN_ON_ONCE for zero sized objects for 2.6.22 release X-Git-Tag: v2.6.22-rc7~8 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=17022220dd70378b2f17fa9b0248f15067d88c58;p=linux-2.6-omap-h63xx.git SLAB: remove WARN_ON_ONCE for zero sized objects for 2.6.22 release We agreed to remove the WARN_ON_ONCE before 2.6.22 is released. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/slab.c b/mm/slab.c index 6d65cf4e4b2..a9c4472e920 100644 --- a/mm/slab.c +++ b/mm/slab.c @@ -774,7 +774,6 @@ static inline struct kmem_cache *__find_general_cachep(size_t size, */ BUG_ON(malloc_sizes[INDEX_AC].cs_cachep == NULL); #endif - WARN_ON_ONCE(size == 0); while (size > csizep->cs_size) csizep++;