Re: V4L/DVB (12859): go7007: semaphore -> mutex conversion

From: Stefan Lippers-Hollmann
Date: Thu Nov 12 2009 - 19:01:42 EST


Hi

On Friday 13 November 2009, Linux Kernel Mailing List wrote:
> Gitweb: http://git.kernel.org/linus/fd9a40da1db372833e1af6397d2f6c94ceff3dad
> Commit: fd9a40da1db372833e1af6397d2f6c94ceff3dad
> Parent: 028d4c989ab9e839471739332d185f8f158b0043
> Author: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>
> AuthorDate: Tue Sep 15 11:07:59 2009 -0300
> Committer: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>
> CommitDate: Sat Sep 19 00:13:37 2009 -0300
>
> V4L/DVB (12859): go7007: semaphore -> mutex conversion
>
> Signed-off-by: Hans Verkuil <hverkuil@xxxxxxxxx>
> Signed-off-by: Mauro Carvalho Chehab <mchehab@xxxxxxxxxx>

As already noticed by Pascal Terjan <pterjan@xxxxxxxxx>
http://lkml.indiana.edu/hypermail/linux/kernel/0909.3/00062.html
go7007 currently fails to build in 2.6.32-rc6-git5

LD drivers/staging/go7007/built-in.o
CC [M] drivers/staging/go7007/go7007-v4l2.o
CC [M] drivers/staging/go7007/go7007-driver.o
CC [M] drivers/staging/go7007/go7007-i2c.o
CC [M] drivers/staging/go7007/go7007-fw.o
CC [M] drivers/staging/go7007/snd-go7007.o
CC [M] drivers/staging/go7007/s2250-board.o
drivers/staging/go7007/s2250-board.c:24:26: error: s2250-loader.h: No such file or directory
drivers/staging/go7007/s2250-board.c: In function 'read_reg_fp':
drivers/staging/go7007/s2250-board.c:264: warning: passing argument 1 of 'down_interruptible' from incompatible pointer type
drivers/staging/go7007/s2250-board.c:273: warning: passing argument 1 of 'up' from incompatible pointer type
drivers/staging/go7007/s2250-board.c: In function 's2250_init':
drivers/staging/go7007/s2250-board.c:670: error: implicit declaration of function 's2250loader_init'
drivers/staging/go7007/s2250-board.c:676: error: implicit declaration of function 's2250loader_cleanup'
make[6]: *** [drivers/staging/go7007/s2250-board.o] Error 1
make[5]: *** [drivers/staging/go7007] Error 2
make[4]: *** [drivers/staging] Error 2
make[3]: *** [drivers] Error 2

> drivers/staging/go7007/go7007-driver.c | 12 +++---
> drivers/staging/go7007/go7007-i2c.c | 12 +++---
> drivers/staging/go7007/go7007-priv.h | 6 +-
> drivers/staging/go7007/go7007-usb.c | 10 ++--
> drivers/staging/go7007/go7007-v4l2.c | 66 ++++++++++++++++----------------
> drivers/staging/go7007/go7007.txt | 4 +-
> drivers/staging/go7007/s2250-board.c | 18 ++++-----
> drivers/staging/go7007/s2250-loader.c | 8 ++--
> drivers/staging/go7007/snd-go7007.c | 2 +-
> 9 files changed, 68 insertions(+), 70 deletions(-)

[...]
> diff --git a/drivers/staging/go7007/s2250-board.c b/drivers/staging/go7007/s2250-board.c
> index b398db4..f35f077 100644
> --- a/drivers/staging/go7007/s2250-board.c
> +++ b/drivers/staging/go7007/s2250-board.c
> @@ -21,12 +21,10 @@
> #include <linux/i2c.h>
> #include <linux/videodev2.h>
> #include <media/v4l2-common.h>
> +#include "s2250-loader.h"

s2250-loader.h is neither available in
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
nor
git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-2.6.git
although it seems to have been included in Hans' initial pull request
http://www.mail-archive.com/linux-media@xxxxxxxxxxxxxxx/msg09506.html

> #include "go7007-priv.h"
> #include "wis-i2c.h"
>
> -extern int s2250loader_init(void);
> -extern void s2250loader_cleanup(void);
> -
> #define TLV320_ADDRESS 0x34
> #define VPX322_ADDR_ANALOGCONTROL1 0x02
> #define VPX322_ADDR_BRIGHTNESS0 0x0127
[...]

This is a regression since 2.6.31.

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