From: arnd@arndb.de (Arnd Bergmann)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] drm/gem: remove unused variable in drm_gem_cma_prime_mmap
Date: Tue, 03 Nov 2015 15:50:53 +0100 [thread overview]
Message-ID: <5381396.mRN26lWq1C@wuerfel> (raw)
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);
reply other threads:[~2015-11-03 14:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5381396.mRN26lWq1C@wuerfel \
--to=arnd@arndb.de \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox