From: Andrzej Hajda <a.hajda@samsung.com>
To: Inki Dae <inki.dae@samsung.com>
Cc: Andrzej Hajda <a.hajda@samsung.com>,
Marek Szyprowski <m.szyprowski@samsung.com>,
Joonyoung Shim <jy0922.shim@samsung.com>,
Seung-Woo Kim <sw0312.kim@samsung.com>,
Kyungmin Park <kyungmin.park@samsung.com>,
dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org (open list),
linux-samsung-soc@vger.kernel.org (moderated list:ARM/S5P EXYNOS
AR...)
Subject: [PATCH 04/12] drm/exynos/ipp: correct address type
Date: Thu, 03 Jul 2014 15:10:29 +0200 [thread overview]
Message-ID: <1404393037-17299-5-git-send-email-a.hajda@samsung.com> (raw)
In-Reply-To: <1404393037-17299-1-git-send-email-a.hajda@samsung.com>
exynos_drm_gem_get_dma_addr returns dma_addr_t, type casting to void* and
back is not necessary.
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
---
drivers/gpu/drm/exynos/exynos_drm_ipp.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/exynos/exynos_drm_ipp.c b/drivers/gpu/drm/exynos/exynos_drm_ipp.c
index 34d185c..f3d8b5c 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_ipp.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_ipp.c
@@ -681,7 +681,6 @@ static struct drm_exynos_ipp_mem_node
{
struct drm_exynos_ipp_mem_node *m_node;
struct drm_exynos_ipp_buf_info buf_info;
- void *addr;
int i;
m_node = kzalloc(sizeof(*m_node), GFP_KERNEL);
@@ -704,6 +703,8 @@ static struct drm_exynos_ipp_mem_node
/* get dma address by handle */
if (qbuf->handle[i]) {
+ dma_addr_t *addr;
+
addr = exynos_drm_gem_get_dma_addr(drm_dev,
qbuf->handle[i], file);
if (IS_ERR(addr)) {
@@ -712,7 +713,7 @@ static struct drm_exynos_ipp_mem_node
}
buf_info.handles[i] = qbuf->handle[i];
- buf_info.base[i] = *(dma_addr_t *) addr;
+ buf_info.base[i] = *addr;
DRM_DEBUG_KMS("i[%d]base[0x%x]hd[0x%x]\n",
i, buf_info.base[i], (int)buf_info.handles[i]);
}
--
1.9.1
next prev parent reply other threads:[~2014-07-03 13:13 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-03 13:10 [PATCH 00/12] drm/exynos/ipp: image post processing improvements, part three Andrzej Hajda
2014-07-03 13:10 ` [PATCH 01/12] drm/exynos/ipp: remove type casting Andrzej Hajda
2014-07-03 13:10 ` [PATCH 02/12] drm/exynos/ipp: remove unused field from exynos_drm_ipp_private Andrzej Hajda
2014-07-03 13:10 ` [PATCH 03/12] drm/exynos/ipp: remove struct exynos_drm_ipp_private Andrzej Hajda
2014-07-03 13:10 ` Andrzej Hajda [this message]
2014-07-03 13:10 ` [PATCH 05/12] drm/exynos/ipp: remove temporary variable Andrzej Hajda
2014-07-03 13:10 ` [PATCH 06/12] drm/exynos/ipp: remove incorrect checks of list_first_entry result Andrzej Hajda
2014-07-03 13:10 ` [PATCH 07/12] drm/exynos/ipp: simplify memory check function Andrzej Hajda
2014-07-03 13:10 ` [PATCH 08/12] drm/exynos/ipp: remove useless registration checks Andrzej Hajda
2014-07-03 13:10 ` [PATCH 09/12] drm/exynos/ipp: simplify ipp_find_obj Andrzej Hajda
2014-07-03 13:10 ` [PATCH 10/12] drm/exynos/ipp: remove redundant messages Andrzej Hajda
2014-07-03 13:10 ` [PATCH 11/12] drm/exynos/ipp: simplify ipp_create_id Andrzej Hajda
2014-07-03 13:10 ` [PATCH 12/12] drm/exynos/ipp: simplify ipp_find_driver Andrzej Hajda
2014-07-09 14:47 ` [PATCH 00/12] drm/exynos/ipp: image post processing improvements, part three Inki Dae
2014-07-21 9:23 ` Andrzej Hajda
2014-07-22 0:54 ` Inki Dae
2014-07-22 13:42 ` Inki Dae
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=1404393037-17299-5-git-send-email-a.hajda@samsung.com \
--to=a.hajda@samsung.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=inki.dae@samsung.com \
--cc=jy0922.shim@samsung.com \
--cc=kyungmin.park@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=m.szyprowski@samsung.com \
--cc=sw0312.kim@samsung.com \
/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
all inboxes | Powered by JetHome®