diff options
author | Jani Nikula <[email protected]> | 2023-05-26 19:38:03 +0300 |
---|---|---|
committer | Jani Nikula <[email protected]> | 2023-06-07 13:24:33 +0300 |
commit | ab438a61e4c3675e6077d232a67284328777d929 (patch) | |
tree | d1e58dbcccf5a6213beaba75bfecd7fb6809fc43 | |
parent | 927fc4a015937ecdc5de04c144963aa6a57762a2 (diff) |
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 <[email protected]>
Reviewed-by: Andi Shyti <[email protected]>
Reviewed-by: Jouni Högander <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/9ee9e7d7a0a7ad4ff03c14e64b95d3fbcb7885a4.1685119007.git.jani.nikula@intel.com
-rw-r--r-- | drivers/gpu/drm/i915/gem/i915_gem_shmem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/gem/i915_gem_shmem.c b/drivers/gpu/drm/i915/gem/i915_gem_shmem.c index cad4a6017f4b..33d5d5178103 100644 --- a/drivers/gpu/drm/i915/gem/i915_gem_shmem.c +++ b/drivers/gpu/drm/i915/gem/i915_gem_shmem.c @@ -455,7 +455,7 @@ shmem_pwrite(struct drm_i915_gem_object *obj, struct page *page; void *data, *vaddr; int err; - char c; + char __maybe_unused c; len = PAGE_SIZE - pg; if (len > remain) |