Skip to content

Commit 1032a49

Browse files
committed
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
1 parent ab438a6 commit 1032a49

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/i915/selftests/i915_gem_gtt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ static void close_object_list(struct list_head *objects,
391391
struct i915_address_space *vm)
392392
{
393393
struct drm_i915_gem_object *obj, *on;
394-
int ignored;
394+
int __maybe_unused ignored;
395395

396396
list_for_each_entry_safe(obj, on, objects, st_link) {
397397
struct i915_vma *vma;

0 commit comments

Comments
 (0)