commit | 3c779a49bd7ce6c9ecc35a679f28f94fe3cfaeab | [log] [tgz] |
---|---|---|
author | Joonas Lahtinen <joonas.lahtinen@linux.intel.com> | Wed Feb 08 15:12:09 2017 +0200 |
committer | Joonas Lahtinen <joonas.lahtinen@linux.intel.com> | Wed Feb 08 17:22:00 2017 +0200 |
tree | a2db24065313d5907e5179baad66ab3ef5948d33 | |
parent | 038c95a313e4ca954ee5ab8a0c7559a646b0f462 [diff] |
drm/i915: Avoid BIT(max) - 1 and use GENMASK(max - 1, 0) "BIT(max) - 1" will overflow when max = 32, and GCC will complain. We already have GENMASK for generating the mask, use it! v2: Majestic off by one spotted (Chris) Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>