* [PATCH 1/2] drm/exynos: Fix address space warning in exynos_drm_buf.c
@ 2013-09-05 11:31 Sachin Kamat
2013-09-05 11:31 ` [PATCH 2/2] drm/exynos: Fix address space warnings in exynos_drm_fbdev.c Sachin Kamat
0 siblings, 1 reply; 3+ messages in thread
From: Sachin Kamat @ 2013-09-05 11:31 UTC (permalink / raw)
To: dri-devel; +Cc: sachin.kamat
Fixes the following warning:
drivers/gpu/drm/exynos/exynos_drm_buf.c:66:29: warning:
incorrect type in assignment (different address spaces)
drivers/gpu/drm/exynos/exynos_drm_buf.c:66:29:
expected void [noderef] <asn:2>*kvaddr
drivers/gpu/drm/exynos/exynos_drm_buf.c:66:29: got void *
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
drivers/gpu/drm/exynos/exynos_drm_buf.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/exynos/exynos_drm_buf.c b/drivers/gpu/drm/exynos/exynos_drm_buf.c
index 3445a0f..d20a7af 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_buf.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_buf.c
@@ -63,7 +63,8 @@ static int lowlevel_buffer_allocate(struct drm_device *dev,
return -ENOMEM;
}
- buf->kvaddr = dma_alloc_attrs(dev->dev, buf->size,
+ buf->kvaddr = (void __iomem *)dma_alloc_attrs(dev->dev,
+ buf->size,
&buf->dma_addr, GFP_KERNEL,
&buf->dma_attrs);
if (!buf->kvaddr) {
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] drm/exynos: Fix address space warnings in exynos_drm_fbdev.c
2013-09-05 11:31 [PATCH 1/2] drm/exynos: Fix address space warning in exynos_drm_buf.c Sachin Kamat
@ 2013-09-05 11:31 ` Sachin Kamat
2013-09-16 13:04 ` Inki Dae
0 siblings, 1 reply; 3+ messages in thread
From: Sachin Kamat @ 2013-09-05 11:31 UTC (permalink / raw)
To: dri-devel; +Cc: sachin.kamat
Silences the following warnings:
drivers/gpu/drm/exynos/exynos_drm_fbdev.c:102:40: warning:
incorrect type in assignment (different address spaces)
drivers/gpu/drm/exynos/exynos_drm_fbdev.c:102:40:
expected void [noderef] <asn:2>*kvaddr
drivers/gpu/drm/exynos/exynos_drm_fbdev.c:102:40: got void *
drivers/gpu/drm/exynos/exynos_drm_fbdev.c:107:48: warning:
incorrect type in assignment (different address spaces)
drivers/gpu/drm/exynos/exynos_drm_fbdev.c:107:48:
expected void [noderef] <asn:2>*kvaddr
drivers/gpu/drm/exynos/exynos_drm_fbdev.c:107:48: got void *
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
drivers/gpu/drm/exynos/exynos_drm_fbdev.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
index 78e868b..e7c2f2d 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
@@ -99,12 +99,13 @@ static int exynos_drm_fbdev_update(struct drm_fb_helper *helper,
if (is_drm_iommu_supported(dev)) {
unsigned int nr_pages = buffer->size >> PAGE_SHIFT;
- buffer->kvaddr = vmap(buffer->pages, nr_pages, VM_MAP,
+ buffer->kvaddr = (void __iomem *) vmap(buffer->pages,
+ nr_pages, VM_MAP,
pgprot_writecombine(PAGE_KERNEL));
} else {
phys_addr_t dma_addr = buffer->dma_addr;
if (dma_addr)
- buffer->kvaddr = phys_to_virt(dma_addr);
+ buffer->kvaddr = (void __iomem *)phys_to_virt(dma_addr);
else
buffer->kvaddr = (void __iomem *)NULL;
}
--
1.7.9.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 2/2] drm/exynos: Fix address space warnings in exynos_drm_fbdev.c
2013-09-05 11:31 ` [PATCH 2/2] drm/exynos: Fix address space warnings in exynos_drm_fbdev.c Sachin Kamat
@ 2013-09-16 13:04 ` Inki Dae
0 siblings, 0 replies; 3+ messages in thread
From: Inki Dae @ 2013-09-16 13:04 UTC (permalink / raw)
To: Sachin Kamat; +Cc: DRI mailing list
[-- Attachment #1.1: Type: text/plain, Size: 2215 bytes --]
Applied.
Thanks,
Inki Dae
2013/9/5 Sachin Kamat <sachin.kamat@linaro.org>
> Silences the following warnings:
> drivers/gpu/drm/exynos/exynos_drm_fbdev.c:102:40: warning:
> incorrect type in assignment (different address spaces)
> drivers/gpu/drm/exynos/exynos_drm_fbdev.c:102:40:
> expected void [noderef] <asn:2>*kvaddr
> drivers/gpu/drm/exynos/exynos_drm_fbdev.c:102:40: got void *
> drivers/gpu/drm/exynos/exynos_drm_fbdev.c:107:48: warning:
> incorrect type in assignment (different address spaces)
> drivers/gpu/drm/exynos/exynos_drm_fbdev.c:107:48:
> expected void [noderef] <asn:2>*kvaddr
> drivers/gpu/drm/exynos/exynos_drm_fbdev.c:107:48: got void *
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
> ---
> drivers/gpu/drm/exynos/exynos_drm_fbdev.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
> b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
> index 78e868b..e7c2f2d 100644
> --- a/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
> +++ b/drivers/gpu/drm/exynos/exynos_drm_fbdev.c
> @@ -99,12 +99,13 @@ static int exynos_drm_fbdev_update(struct
> drm_fb_helper *helper,
> if (is_drm_iommu_supported(dev)) {
> unsigned int nr_pages = buffer->size >> PAGE_SHIFT;
>
> - buffer->kvaddr = vmap(buffer->pages, nr_pages,
> VM_MAP,
> + buffer->kvaddr = (void __iomem *)
> vmap(buffer->pages,
> + nr_pages, VM_MAP,
> pgprot_writecombine(PAGE_KERNEL));
> } else {
> phys_addr_t dma_addr = buffer->dma_addr;
> if (dma_addr)
> - buffer->kvaddr = phys_to_virt(dma_addr);
> + buffer->kvaddr = (void __iomem
> *)phys_to_virt(dma_addr);
> else
> buffer->kvaddr = (void __iomem *)NULL;
> }
> --
> 1.7.9.5
>
> _______________________________________________
> dri-devel mailing list
> dri-devel@lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
>
[-- Attachment #1.2: Type: text/html, Size: 2973 bytes --]
[-- Attachment #2: Type: text/plain, Size: 159 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-09-16 13:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-05 11:31 [PATCH 1/2] drm/exynos: Fix address space warning in exynos_drm_buf.c Sachin Kamat
2013-09-05 11:31 ` [PATCH 2/2] drm/exynos: Fix address space warnings in exynos_drm_fbdev.c Sachin Kamat
2013-09-16 13:04 ` Inki Dae
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).