tcm825x.c:892: warning: initialization from incompatible pointer type
- Date: Fri, 02 May 2008 18:37:36 -0400
- From: Andy Walls <awalls@xxxxxxxxx>
- Subject: tcm825x.c:892: warning: initialization from incompatible pointer type
Making the latest v4l-dvb tree on my system yields this warning:
$ make
make -C /home/andy/cx18dev/v4l-dvb/v4l
make[1]: Entering directory `/home/andy/cx18dev/v4l-dvb/v4l'
creating symbolic links...
Kernel build directory is /lib/modules/2.6.23.15-80.fc7/build
make -C /lib/modules/2.6.23.15-80.fc7/build SUBDIRS=/home/andy/cx18dev/v4l-dvb/v4l modules
make[2]: Entering directory `/usr/src/kernels/2.6.23.15-80.fc7-x86_64'
CC [M] /home/andy/cx18dev/v4l-dvb/v4l/tcm825x.o
/home/andy/cx18dev/v4l-dvb/v4l/tcm825x.c:892: warning: initialization from incompatible pointer type
On my 2.6.23.15 kernel, the probe member of struct i2c_driver is a
pointer to a functions that takes only one argument.
struct i2c_driver {
[...]
int (*probe)(struct i2c_client *);
[...]
};
but in tcm825x.c in the latest v4l-dvb repo it's a 2 argument function:
static int tcm825x_probe(struct i2c_client *client,
const struct i2c_device_id *did)
I'm not sure how far back the hg repository aims to ensure working with
older kernels, but I thought someone may care.
Regards,
Andy
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list