From: Steven Rostedt Date: Wed, 1 Feb 2006 11:05:44 +0000 (-0800) Subject: [PATCH] slab: have index_of bug at compile time X-Git-Tag: v2.6.16-rc2~96 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ec8a847bb8ae2ba6395cfb7cb4bfdc78ada82ed;p=pandora-kernel.git [PATCH] slab: have index_of bug at compile time I noticed the code for index_of is a creative way of finding the cache index using the compiler to optimize to a single hard coded number. But I couldn't help noticing that it uses two methods to let you know that someone used it wrong. One is at compile time (the correct way), and the other is at run time (not good). Signed-off-by: Steven Rostedt Acked-by: Manfred Spraul Signed-off-by: Pekka Enberg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed