lkml.org 
[lkml]   [2004]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectvideo-buf warning
This is 2.6.6-rc3 on a sparc64. The warning has been there for quite
some time, finally got around to report it.

CC [M] drivers/media/video/video-buf.o
drivers/media/video/video-buf.c: In function `videobuf_iolock':
drivers/media/video/video-buf.c:327: warning: cast from pointer to integer of different size

The specific code is
/* FIXME: need sanity checks for vb->boff */
bus = (dma_addr_t)fbuf->base + vb->boff;

bus is dma_addr_t (==u32 on sparc64), base is void*

So if buf->base is really an arbitrary pointer, it might not fit into
u32. What is it actually?

--
Meelis Roos (mroos@linux.ee)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:02    [W:0.076 / U:0.800 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site