]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
[PATCH] v4l: 651: fix a number of sparse warnings
authorPeter Hagervall <hager@cs.umu.se>
Wed, 9 Nov 2005 05:36:29 +0000 (21:36 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 9 Nov 2005 15:56:09 +0000 (07:56 -0800)
- Fix a number of sparse warnings.

Signed-off-by: Peter Hagervall <hager@cs.umu.se>
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/media/video/cx88/cx88-core.c
drivers/media/video/cx88/cx88-video.c
drivers/media/video/cx88/cx88.h

index 87212759149e2c5abff0849485c9c3e3fb6c9b8b..8f1c27fdae6a3f2ccb235ab82b8a52de98e06af0 100644 (file)
@@ -431,7 +431,7 @@ int cx88_sram_channel_setup(struct cx88_core *core,
 /* ------------------------------------------------------------------ */
 /* debug helper code                                                  */
 
-int cx88_risc_decode(u32 risc)
+static int cx88_risc_decode(u32 risc)
 {
        static char *instr[16] = {
                [ RISC_SYNC    >> 28 ] = "sync",
index 67630f61c4707661b6f5f05a3e81a938c321ba02..a29c12754ef6cc91d20f3f66793162341e9e4806 100644 (file)
@@ -787,7 +787,7 @@ static int video_open(struct inode *inode, struct file *file)
 }
 
 static ssize_t
-video_read(struct file *file, char *data, size_t count, loff_t *ppos)
+video_read(struct file *file, char __user *data, size_t count, loff_t *ppos)
 {
        struct cx8800_fh *fh = file->private_data;
 
index 3d885b4025d84f69e97e1ac5496fe362d208c4c0..bd27b56ace264f73f2b02320df090ef4411f48a5 100644 (file)
@@ -204,8 +204,8 @@ struct cx88_board {
        int                     tda9887_conf;
        struct cx88_input       input[MAX_CX88_INPUT];
        struct cx88_input       radio;
-       int                     blackbird:1;
-       int                     dvb:1;
+       unsigned int            blackbird:1;
+       unsigned int            dvb:1;
 };
 
 struct cx88_subid {