]> www.infradead.org Git - users/jedix/linux-maple.git/commit
lib/iommu-common.c: do not use 0xffffffffffffffffl for computing align_mask
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Thu, 6 Aug 2015 22:46:39 +0000 (15:46 -0700)
committerAllen Pais <allen.pais@oracle.com>
Fri, 11 Sep 2015 16:02:51 +0000 (21:32 +0530)
commit6c37274115c7ce4cb6a4158622c1be22dbedde8d
tree32cde8d0bc7eab097834200beed8a52026fa1578
parent1636d3a348ac7f89b93b0e473f7f28f9439c6b34
lib/iommu-common.c: do not use 0xffffffffffffffffl for computing align_mask

Using a 64 bit constant generates "warning: integer constant is too
large for 'long' type" on 32 bit platforms.  Instead use ~0ul and
BITS_PER_LONG.

Detected by Andrew Morton on ARMD.

Signed-off-by: Sowmini Varadhan <sowmini.varadhan@oracle.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: David S. Miller <davem@davemloft.net>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
(cherry picked from commit 447f6a95a9c80da7faaec3e66e656eab8f262640)
Signed-off-by: Allen Pais <allen.pais@oracle.com>
lib/iommu-common.c