diff options
author | Qian Cai <cai@lca.pw> | 2019-07-22 21:14:46 +0200 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2019-07-22 22:04:53 +0200 |
commit | bbb6fc43f131f77fcb7ae8081f6d7c51396a2120 (patch) | |
tree | 52f2ad7c578d8ccd7914abcc4263ab85ceaa5522 /drivers/gpu/drm/drm_framebuffer.c | |
parent | drm/msm: stop abusing dma_map/unmap for cache (diff) | |
download | linux-bbb6fc43f131f77fcb7ae8081f6d7c51396a2120.tar.xz linux-bbb6fc43f131f77fcb7ae8081f6d7c51396a2120.zip |
drm: silence variable 'conn' set but not used
The "struct drm_connector" iteration cursor from
"for_each_new_connector_in_state" is never used in atomic_remove_fb()
which generates a compilation warning,
drivers/gpu/drm/drm_framebuffer.c: In function 'atomic_remove_fb':
drivers/gpu/drm/drm_framebuffer.c:838:24: warning: variable 'conn' set
but not used [-Wunused-but-set-variable]
Silence it by marking "conn" __maybe_unused.
Signed-off-by: Qian Cai <cai@lca.pw>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1563822886-13570-1-git-send-email-cai@lca.pw
Diffstat (limited to 'drivers/gpu/drm/drm_framebuffer.c')
-rw-r--r-- | drivers/gpu/drm/drm_framebuffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_framebuffer.c b/drivers/gpu/drm/drm_framebuffer.c index 0b72468e8131..57564318ceea 100644 --- a/drivers/gpu/drm/drm_framebuffer.c +++ b/drivers/gpu/drm/drm_framebuffer.c @@ -835,7 +835,7 @@ static int atomic_remove_fb(struct drm_framebuffer *fb) struct drm_device *dev = fb->dev; struct drm_atomic_state *state; struct drm_plane *plane; - struct drm_connector *conn; + struct drm_connector *conn __maybe_unused; struct drm_connector_state *conn_state; int i, ret; unsigned plane_mask; |