diff options
| author | Joonas Lahtinen <joonas.lahtinen@linux.intel.com> | 2017-02-08 15:12:09 +0200 |
|---|---|---|
| committer | Joonas Lahtinen <joonas.lahtinen@linux.intel.com> | 2017-02-08 17:22:00 +0200 |
| commit | 3c779a49bd7ce6c9ecc35a679f28f94fe3cfaeab (patch) | |
| tree | a2db24065313d5907e5179baad66ab3ef5948d33 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 038c95a313e4ca954ee5ab8a0c7559a646b0f462 (diff) | |
| download | kernel-3c779a49bd7ce6c9ecc35a679f28f94fe3cfaeab.tar.gz | |
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>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
