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-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=17022220dd70378b2f17fa9b0248f15067d88c58;p=openwrt%2Fstaging%2Fblogic.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 6d65cf4e4b2e..a9c4472e9204 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++;