* [PATCH v2] OMAP3: iovmm: fix compiler warning
@ 2009-09-23 9:11 Sanjeev Premi
2009-09-23 9:22 ` Hiroshi DOYU
2009-09-23 23:39 ` [APPLIED] " Tony Lindgren
0 siblings, 2 replies; 3+ messages in thread
From: Sanjeev Premi @ 2009-09-23 9:11 UTC (permalink / raw)
To: linux-omap; +Cc: Sanjeev Premi
This patch fixes these compiler warnings:
arch/arm/plat-omap/iovmm.c: In function 'vmap_sg':
arch/arm/plat-omap/iovmm.c:202: warning: passing argument 1 of
'flush_cache_vmap' makes integer from pointer without a cast
arch/arm/plat-omap/iovmm.c:202: warning: passing argument 2 of
'flush_cache_vmap' makes integer from pointer without a cast
arch/arm/plat-omap/iovmm.c: In function 'sgtable_fill_vmalloc':
arch/arm/plat-omap/iovmm.c:393: warning: passing argument 1 of
'flush_cache_vmap' makes integer from pointer without a cast
arch/arm/plat-omap/iovmm.c:393: warning: passing argument 2 of
'flush_cache_vmap' makes integer from pointer without a cast
Signed-off-by: Sanjeev Premi <premi@ti.com>
---
arch/arm/plat-omap/iovmm.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/arm/plat-omap/iovmm.c b/arch/arm/plat-omap/iovmm.c
index 6fc52fc..57f7122 100644
--- a/arch/arm/plat-omap/iovmm.c
+++ b/arch/arm/plat-omap/iovmm.c
@@ -199,7 +199,8 @@ static void *vmap_sg(const struct sg_table *sgt)
va += bytes;
}
- flush_cache_vmap(new->addr, new->addr + total);
+ flush_cache_vmap((unsigned long)new->addr,
+ (unsigned long)(new->addr + total));
return new->addr;
err_out:
@@ -390,7 +391,7 @@ static void sgtable_fill_vmalloc(struct sg_table *sgt, void *_va)
}
va_end = _va + PAGE_SIZE * i;
- flush_cache_vmap(_va, va_end);
+ flush_cache_vmap((unsigned long)_va, (unsigned long)va_end);
}
static inline void sgtable_drain_vmalloc(struct sg_table *sgt)
--
1.6.2.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v2] OMAP3: iovmm: fix compiler warning
2009-09-23 9:11 [PATCH v2] OMAP3: iovmm: fix compiler warning Sanjeev Premi
@ 2009-09-23 9:22 ` Hiroshi DOYU
2009-09-23 23:39 ` [APPLIED] " Tony Lindgren
1 sibling, 0 replies; 3+ messages in thread
From: Hiroshi DOYU @ 2009-09-23 9:22 UTC (permalink / raw)
To: premi, tony; +Cc: linux-omap
From: ext Sanjeev Premi <premi@ti.com>
Subject: [PATCH v2] OMAP3: iovmm: fix compiler warning
Date: Wed, 23 Sep 2009 11:11:32 +0200
> This patch fixes these compiler warnings:
>
> arch/arm/plat-omap/iovmm.c: In function 'vmap_sg':
> arch/arm/plat-omap/iovmm.c:202: warning: passing argument 1 of
> 'flush_cache_vmap' makes integer from pointer without a cast
> arch/arm/plat-omap/iovmm.c:202: warning: passing argument 2 of
> 'flush_cache_vmap' makes integer from pointer without a cast
> arch/arm/plat-omap/iovmm.c: In function 'sgtable_fill_vmalloc':
> arch/arm/plat-omap/iovmm.c:393: warning: passing argument 1 of
> 'flush_cache_vmap' makes integer from pointer without a cast
> arch/arm/plat-omap/iovmm.c:393: warning: passing argument 2 of
> 'flush_cache_vmap' makes integer from pointer without a cast
>
> Signed-off-by: Sanjeev Premi <premi@ti.com>
OK for me.
Tony, please put this in too.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [APPLIED] [PATCH v2] OMAP3: iovmm: fix compiler warning
2009-09-23 9:11 [PATCH v2] OMAP3: iovmm: fix compiler warning Sanjeev Premi
2009-09-23 9:22 ` Hiroshi DOYU
@ 2009-09-23 23:39 ` Tony Lindgren
1 sibling, 0 replies; 3+ messages in thread
From: Tony Lindgren @ 2009-09-23 23:39 UTC (permalink / raw)
To: linux-omap
This patch has been applied to the linux-omap
by youw fwiendly patch wobot.
Branch in linux-omap: omap-fixes
Initial commit ID (Likely to change): d5686609428bfa7ac92c70f92304be43f206ffce
PatchWorks
http://patchwork.kernel.org/patch/49503/
Git (Likely to change, and takes a while to get mirrored)
http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=commit;h=d5686609428bfa7ac92c70f92304be43f206ffce
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-09-23 23:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-23 9:11 [PATCH v2] OMAP3: iovmm: fix compiler warning Sanjeev Premi
2009-09-23 9:22 ` Hiroshi DOYU
2009-09-23 23:39 ` [APPLIED] " Tony Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox