diff options
| author | Joonas Lahtinen <[email protected]> | 2017-02-08 15:12:09 +0200 |
|---|---|---|
| committer | Joonas Lahtinen <[email protected]> | 2017-02-08 17:22:00 +0200 |
| commit | 3c779a49bd7ce6c9ecc35a679f28f94fe3cfaeab (patch) | |
| tree | a2db24065313d5907e5179baad66ab3ef5948d33 /tools/perf/scripts/python/bin | |
| 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 <[email protected]>
Cc: Chris Wilson <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions