diff options
author | Lee Jones <[email protected]> | 2020-11-16 17:40:57 +0000 |
---|---|---|
committer | Daniel Vetter <[email protected]> | 2020-11-17 20:05:05 +0100 |
commit | 7df5428975e97818b30d2b800c9e8b0734ea8da9 (patch) | |
tree | 5cea0df7c8090059af9a843ca0eebbf41b1cf9e6 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | f8cd9d9532c68ca00375ebba8dc71d8dca8250ba (diff) |
drm/selftests/test-drm_mm: Mark 'hole_end' as always_unused
In the macro drm_mm_for_each_hole() 'hole_end' is provided as a
container for 'hole_start + pos->hole_size', but is not utilised in
this use-case. We cannot simply delete the variable, so here we tell
the compiler that we're intentionally discarding the read value.
Fixes the following W=1 kernel build warning(s):
drivers/gpu/drm/selftests/test-drm_mm.c: In function ‘assert_no_holes’:
drivers/gpu/drm/selftests/test-drm_mm.c:57:18: warning: variable ‘hole_end’ set but not used [-Wunused-but-set-variable]
Cc: David Airlie <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: "Christian König" <[email protected]>
Cc: Nirmoy Das <[email protected]>
Cc: [email protected]
Signed-off-by: Lee Jones <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions