From: Chris Metcalf Date: Fri, 25 May 2012 16:32:09 +0000 (-0400) Subject: tile: fix bug where fls(0) was not returning 0 X-Git-Tag: v3.5-rc1~76^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f1d62bed7f015d11b9164078b7fea433b474114;p=pandora-kernel.git tile: fix bug where fls(0) was not returning 0 This is because __builtin_clz(0) returns 64 for the "undefined" case of 0, since the builtin just does a right-shift 32 and "clz" instruction. So, use the alpha approach of casting to u32 and using __builtin_clzll(). Cc: stable@vger.kernel.org Signed-off-by: Chris Metcalf --- Reading git-diff-tree failed