Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1261556 > unrolled thread
| Started by | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| First post | 2015-11-03 16:00 +0100 |
| Last post | 2015-11-03 16:00 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH] drm/gem: remove unused variable in drm_gem_cma_prime_mmap Arnd Bergmann <arnd@arndb.de> - 2015-11-03 16:00 +0100
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Date | 2015-11-03 16:00 +0100 |
| Subject | [PATCH] drm/gem: remove unused variable in drm_gem_cma_prime_mmap |
| Message-ID | <qqLe2-41D-13@gated-at.bofh.it> |
Now that the mutex is no longer used in drm_gem_cma_prime_mmap,
the 'dev' variable is not referenced either, which gcc warns about:
drivers/gpu/drm/drm_gem_cma_helper.c:484:21: warning: unused variable 'dev'
This removes it too.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 4e270f088011 ("drm/gem: Drop struct_mutex requirement from drm_gem_mmap_obj")
---
Currently in drm-next, warning found on yesterday's linux-next with ARM randconfig builds
diff --git a/drivers/gpu/drm/drm_gem_cma_helper.c b/drivers/gpu/drm/drm_gem_cma_helper.c
index 4fb4c45d039f..e109b49cd25d 100644
--- a/drivers/gpu/drm/drm_gem_cma_helper.c
+++ b/drivers/gpu/drm/drm_gem_cma_helper.c
@@ -481,7 +481,6 @@ int drm_gem_cma_prime_mmap(struct drm_gem_object *obj,
struct vm_area_struct *vma)
{
struct drm_gem_cma_object *cma_obj;
- struct drm_device *dev = obj->dev;
int ret;
ret = drm_gem_mmap_obj(obj, obj->size, vma);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to top | Article view | linux.kernel
csiph-web