drm/i915/selftest: annotate maybe unused but set variable unused
authorJani Nikula <jani.nikula@intel.com>
Fri, 26 May 2023 16:38:04 +0000 (19:38 +0300)
committerJani Nikula <jani.nikula@intel.com>
Wed, 7 Jun 2023 10:25:00 +0000 (13:25 +0300)
commit1032a491e2b5fc9793be31aae2d9e207975a1e7e
tree2635474630d6b2837b195bb3ad4f0a50855854cc
parentab438a61e4c3675e6077d232a67284328777d929
drm/i915/selftest: annotate maybe unused but set variable unused

Prepare for re-enabling -Wunused-but-set-variable.

The variable is indeed 'unused' as the name suggests, but we can't just
drop it because i915_vma_unbind_unlocked() is annotated
__must_check. Apparently the selftest does not really need to check the
value.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Jouni Högander <jouni.hogander@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/e7654682f6bd6a9f6af74f4b6eb5fff7b527e412.1685119007.git.jani.nikula@intel.com
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c