aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx18/cx18-queue.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-09-03 16:11:54 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-09-03 17:37:13 -0400
commitc6eb8eafdba4ad18b4520a0d28a38bc9e61883ea (patch)
tree8b580ce4ac05617bc760272fb29382b1ffc73bad /drivers/media/video/cx18/cx18-queue.c
parent980d4f17345fe420fda2a84cd4a28d5d41d73cef (diff)
V4L/DVB (8757): v4l-dvb: fix a bunch of sparse warnings
Fixed a lot of sparse warnings: mostly warnings about shadowed variables and signed/unsigned mismatches. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cx18/cx18-queue.c')
-rw-r--r--drivers/media/video/cx18/cx18-queue.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/cx18/cx18-queue.c b/drivers/media/video/cx18/cx18-queue.c
index 8a4dd821fd91..a31da49f9123 100644
--- a/drivers/media/video/cx18/cx18-queue.c
+++ b/drivers/media/video/cx18/cx18-queue.c
@@ -217,10 +217,10 @@ int cx18_stream_alloc(struct cx18_stream *s)
217 s->name, s->buffers, s->buf_size, 217 s->name, s->buffers, s->buf_size,
218 s->buffers * s->buf_size / 1024); 218 s->buffers * s->buf_size / 1024);
219 219
220 if (((char *)&cx->scb->cpu_mdl[cx->mdl_offset + s->buffers] - 220 if (((char __iomem *)&cx->scb->cpu_mdl[cx->mdl_offset + s->buffers] -
221 (char *)cx->scb) > SCB_RESERVED_SIZE) { 221 (char __iomem *)cx->scb) > SCB_RESERVED_SIZE) {
222 unsigned bufsz = (((char *)cx->scb) + SCB_RESERVED_SIZE - 222 unsigned bufsz = (((char __iomem *)cx->scb) + SCB_RESERVED_SIZE -
223 ((char *)cx->scb->cpu_mdl)); 223 ((char __iomem *)cx->scb->cpu_mdl));
224 224
225 CX18_ERR("Too many buffers, cannot fit in SCB area\n"); 225 CX18_ERR("Too many buffers, cannot fit in SCB area\n");
226 CX18_ERR("Max buffers = %zd\n", 226 CX18_ERR("Max buffers = %zd\n",