Re: v4l-dvb-hg conflict with zoran

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



CC [M]  /var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/zoran_device.o
/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/zoran_procfs.c:
In function 'zoran_proc_init':
/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/zoran_procfs.c:208:
error: implicit declaration of function 'proc_create_data'
/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/zoran_procfs.c:208:
warning: assignment makes pointer from integer without a cast
make[2]: *** [/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/zoran_procfs.o]

I was tracking down the same build problem when I was building HG drivers yesterday against the Mandriva's 2.6.25 cooker kernel.

I think the error is due because 2.6.25 kernel does not yet have the definition of proc_create_data function in include/linux/proc_fs.h. That is propably coming to 2.6.26 kernel as the latest Linux git contains that prototype.

So maybe a attached 1 line patch could be applied to v4l-dvb hg by somebody?

Mika
diff -Naur v4l-dvb_old/v4l/compat.h v4l-dvb/v4l/compat.h
--- v4l-dvb_old/v4l/compat.h	2008-05-20 20:27:23.000000000 +0300
+++ v4l-dvb/v4l/compat.h	2008-05-20 20:26:37.000000000 +0300
@@ -534,7 +534,7 @@
 #define put_unaligned_le16(r, a)				\
 	put_unaligned(cpu_to_le16(r), ((unsigned short *)(a)))
 #endif
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26)
 #ifdef CONFIG_PROC_FS
 static inline struct proc_dir_entry *proc_create(const char *a,
 	mode_t b, struct proc_dir_entry *c, const struct file_operations *d)
_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux