* [PATCH] Fix zoran_card compilation warning
@ 2006-01-12 20:34 Jean Delvare
2006-01-15 12:13 ` Jean Delvare
0 siblings, 1 reply; 3+ messages in thread
From: Jean Delvare @ 2006-01-12 20:34 UTC (permalink / raw)
To: Ronald S. Bultje; +Cc: LKML, Mauro Carvalho Chehab
Hi Ronald, all,
Fix the following warning which was introduced in 2.6.15-git8 by
commit 7408187d223f63d46a13b6a35b8f96b032c2f623:
CC [M] drivers/media/video/zoran_card.o
drivers/media/video/zoran_card.c: In function `zr36057_init':
drivers/media/video/zoran_card.c:1053: warning: assignment makes integer from pointer without a cast
Signed-off-by: Jean Delvare <khali@linux-fr.org>
---
drivers/media/video/zoran_card.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- linux-2.6.15-git.orig/drivers/media/video/zoran_card.c 2006-01-12 20:34:54.000000000 +0100
+++ linux-2.6.15-git/drivers/media/video/zoran_card.c 2006-01-12 20:47:26.000000000 +0100
@@ -995,7 +995,7 @@
static int __devinit
zr36057_init (struct zoran *zr)
{
- unsigned long mem;
+ u32 *mem;
void *vdev;
unsigned mem_needed;
int j;
@@ -1058,10 +1058,10 @@
"%s: zr36057_init() - kmalloc (STAT_COM) failed\n",
ZR_DEVNAME(zr));
kfree(vdev);
- kfree((void *)mem);
+ kfree(mem);
return -ENOMEM;
}
- zr->stat_com = (u32 *) mem;
+ zr->stat_com = mem;
for (j = 0; j < BUZ_NUM_STAT_COM; j++) {
zr->stat_com[j] = 1; /* mark as unavailable to zr36057 */
}
--
Jean Delvare
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix zoran_card compilation warning
2006-01-12 20:34 [PATCH] Fix zoran_card compilation warning Jean Delvare
@ 2006-01-15 12:13 ` Jean Delvare
2006-01-15 14:44 ` Ronald S. Bultje
0 siblings, 1 reply; 3+ messages in thread
From: Jean Delvare @ 2006-01-15 12:13 UTC (permalink / raw)
To: Linus Torvalds; +Cc: Ronald S. Bultje, LKML, Mauro Carvalho Chehab
Hi Linus, all,
Can we get this one merged before 2.6.16-rc1 please? Thanks.
Fix the following warning which was introduced in 2.6.15-git8 by
commit 7408187d223f63d46a13b6a35b8f96b032c2f623:
CC [M] drivers/media/video/zoran_card.o
drivers/media/video/zoran_card.c: In function `zr36057_init':
drivers/media/video/zoran_card.c:1053: warning: assignment makes integer from pointer without a cast
Signed-off-by: Jean Delvare <khali@linux-fr.org>
---
drivers/media/video/zoran_card.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--- linux-2.6.15-git.orig/drivers/media/video/zoran_card.c 2006-01-12 20:34:54.000000000 +0100
+++ linux-2.6.15-git/drivers/media/video/zoran_card.c 2006-01-12 20:47:26.000000000 +0100
@@ -995,7 +995,7 @@
static int __devinit
zr36057_init (struct zoran *zr)
{
- unsigned long mem;
+ u32 *mem;
void *vdev;
unsigned mem_needed;
int j;
@@ -1058,10 +1058,10 @@
"%s: zr36057_init() - kmalloc (STAT_COM) failed\n",
ZR_DEVNAME(zr));
kfree(vdev);
- kfree((void *)mem);
+ kfree(mem);
return -ENOMEM;
}
- zr->stat_com = (u32 *) mem;
+ zr->stat_com = mem;
for (j = 0; j < BUZ_NUM_STAT_COM; j++) {
zr->stat_com[j] = 1; /* mark as unavailable to zr36057 */
}
--
Jean Delvare
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Fix zoran_card compilation warning
2006-01-15 12:13 ` Jean Delvare
@ 2006-01-15 14:44 ` Ronald S. Bultje
0 siblings, 0 replies; 3+ messages in thread
From: Ronald S. Bultje @ 2006-01-15 14:44 UTC (permalink / raw)
To: Andrew Morton, Jean Delvare; +Cc: Linus Torvalds, LKML, Mauro Carvalho Chehab
Hi Linus/Andrew,
On Sun, 2006-01-15 at 13:13 +0100, Jean Delvare wrote:
> CC [M] drivers/media/video/zoran_card.o
> drivers/media/video/zoran_card.c: In function `zr36057_init':
> drivers/media/video/zoran_card.c:1053: warning: assignment makes integer from pointer without a cast
>
> Signed-off-by: Jean Delvare <khali@linux-fr.org>
> ---
> drivers/media/video/zoran_card.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> --- linux-2.6.15-git.orig/drivers/media/video/zoran_card.c 2006-01-12 20:34:54.000000000 +0100
> +++ linux-2.6.15-git/drivers/media/video/zoran_card.c 2006-01-12 20:47:26.000000000 +0100
> @@ -995,7 +995,7 @@
> static int __devinit
> zr36057_init (struct zoran *zr)
> {
> - unsigned long mem;
> + u32 *mem;
> void *vdev;
> unsigned mem_needed;
> int j;
> @@ -1058,10 +1058,10 @@
> "%s: zr36057_init() - kmalloc (STAT_COM) failed\n",
> ZR_DEVNAME(zr));
> kfree(vdev);
> - kfree((void *)mem);
> + kfree(mem);
> return -ENOMEM;
> }
> - zr->stat_com = (u32 *) mem;
> + zr->stat_com = mem;
> for (j = 0; j < BUZ_NUM_STAT_COM; j++) {
> zr->stat_com[j] = 1; /* mark as unavailable to zr36057 */
> }
>
I support this change, please apply it. It's something left-over from
the time that all computers were 32-bit. Apart from this warning (which
nobody really cared about), the driver was already tested to work fine
on AMD64 computers in 64-bit mode.
Thank you,
Ronald
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-01-15 14:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-12 20:34 [PATCH] Fix zoran_card compilation warning Jean Delvare
2006-01-15 12:13 ` Jean Delvare
2006-01-15 14:44 ` Ronald S. Bultje
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).