diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2016-05-18 12:07:33 -0400 |
|---|---|---|
| committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-05-18 13:16:24 -0400 |
| commit | c6740c9c9e914742fd2ec159142c40701f7df966 (patch) | |
| tree | afd064feb4f3c0348676d8596b95e6a09293142f /drivers/gpu/drm/armada | |
| parent | de4ae068ebf599f46ddfc5f8541a302226230267 (diff) | |
drm: remove unused dev variables
After drm_gem_object_lookup() was changed along with all its callers,
we have several drivers that have unused variables:
drm/armada/armada_crtc.c: In function 'armada_drm_crtc_cursor_set':
drm/armada/armada_crtc.c:900:21: error: unused variable 'dev' [-Werror=unused-variable]
drm/nouveau/nouveau_gem.c: In function 'validate_init':
drm/nouveau/nouveau_gem.c:371:21: error: unused variable 'dev' [-Werror=unused-variable]
drm/nouveau/nv50_display.c: In function 'nv50_crtc_cursor_set':
drm/nouveau/nv50_display.c:1308:21: error: unused variable 'dev' [-Werror=unused-variable]
drm/radeon/radeon_cs.c: In function 'radeon_cs_parser_relocs':
drm/radeon/radeon_cs.c:77:21: error: unused variable 'ddev' [-Werror=unused-variable]
This fixes all the instances I found with ARM randconfig builds so far.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: a8ad0bd84f98 ("drm: Remove unused drm_device from drm_gem_object_lookup()")
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1463587653-3035181-6-git-send-email-arnd@arndb.de
Diffstat (limited to 'drivers/gpu/drm/armada')
| -rw-r--r-- | drivers/gpu/drm/armada/armada_crtc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/armada/armada_crtc.c b/drivers/gpu/drm/armada/armada_crtc.c index a9b7e0f36513..3130aa8bcdd0 100644 --- a/drivers/gpu/drm/armada/armada_crtc.c +++ b/drivers/gpu/drm/armada/armada_crtc.c | |||
| @@ -897,7 +897,6 @@ static void cursor_update(void *data) | |||
| 897 | static int armada_drm_crtc_cursor_set(struct drm_crtc *crtc, | 897 | static int armada_drm_crtc_cursor_set(struct drm_crtc *crtc, |
| 898 | struct drm_file *file, uint32_t handle, uint32_t w, uint32_t h) | 898 | struct drm_file *file, uint32_t handle, uint32_t w, uint32_t h) |
| 899 | { | 899 | { |
| 900 | struct drm_device *dev = crtc->dev; | ||
| 901 | struct armada_crtc *dcrtc = drm_to_armada_crtc(crtc); | 900 | struct armada_crtc *dcrtc = drm_to_armada_crtc(crtc); |
| 902 | struct armada_gem_object *obj = NULL; | 901 | struct armada_gem_object *obj = NULL; |
| 903 | int ret; | 902 | int ret; |
