diff options
| author | Jinjie Ruan <ruanjinjie@huawei.com> | 2024-09-02 17:44:04 +0800 |
|---|---|---|
| committer | Steven Price <steven.price@arm.com> | 2024-09-02 10:43:54 +0100 |
| commit | 9b79594aa470fd5fe2173d281fd604d11ec8e902 (patch) | |
| tree | 088030c297b1bdfc231ec4b4946deffa9fe210d0 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 3a8d97611b564b5b25f68c90b543056fc9ae0bec (diff) | |
drm/panthor: Use the BITS_PER_LONG macro
sizeof(unsigned long) * 8 is the number of bits in an unsigned long
variable, replace it with BITS_PER_LONG macro to make them simpler.
And fix the warning:
WARNING: Comparisons should place the constant on the right side of the test
#23: FILE: drivers/gpu/drm/panthor/panthor_mmu.c:2696:
+ if (BITS_PER_LONG < va_bits) {
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240902094404.1943710-1-ruanjinjie@huawei.com
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
