Skip to content

Commit ab438a6

Browse files
committed
drm/i915/gem: annotate maybe unused but set variable c
Prepare for re-enabling -Wunused-but-set-variable. The variable 'c' appears unused, but I'm not sure what should be done with it. Annotate it with __maybe_unused. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com> Reviewed-by: Jouni Högander <jouni.hogander@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/9ee9e7d7a0a7ad4ff03c14e64b95d3fbcb7885a4.1685119007.git.jani.nikula@intel.com
1 parent 927fc4a commit ab438a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/i915/gem/i915_gem_shmem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ shmem_pwrite(struct drm_i915_gem_object *obj,
455455
struct page *page;
456456
void *data, *vaddr;
457457
int err;
458-
char c;
458+
char __maybe_unused c;
459459

460460
len = PAGE_SIZE - pg;
461461
if (len > remain)

0 commit comments

Comments
 (0)