From: Rasmus Villemoes Date: Fri, 16 Jan 2015 14:39:56 +0000 (+0100) Subject: RDMA/ocrdma: Use unsigned for bit index X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~15^2^6~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f3070e7efdc37a84fa63cbe84ac4febc87440121;p=pandora-kernel.git RDMA/ocrdma: Use unsigned for bit index In the expressions idx/32 and idx%32, both idx and 32 have signed type, and unfortunately the C standard prescribes rounding to 0, so unless gcc can prove that idx is non-negative, these cannot be implemented as simple shift respectively mask operations. Help gcc by changing the type of idx to unsigned - this cuts another few instructions from the generated code. Signed-off-by: Rasmus Villemoes Acked-by: Selvin Xavier Signed-off-by: Roland Dreier --- Reading git-diff-tree failed