Skip to contentSkip to conversation

v4l-experimental and kernel 2.6.26

linux-dvb Martin Raspaud 1 participant 1 message Aug 28, 2008 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I just noticed that v4l-experimental does not compile anymore against kernel 2.6.26. It seems the support of device_class has been removed, and apparently v4l-experimental still makes use of it.

I use the experimental branch on debian sid for an avermedia E506R (hybrid cardbus analog+dvb-t)

Does anyone know a workaround ?

Here is what I get when running make:

/usr/src/v4l-dvb-experimental/v4l# make
perl scripts/make_config_compat.pl /lib/modules/2.6.26-1-686/build ./.myconfig ./config-compat.h
creating symbolic links...
make -C /lib/modules/2.6.26-1-686/build SUBDIRS=/usr/src/v4l-dvb-experimental/v4l modules make[1]: Entering directory `/usr/src/linux-headers-2.6.26-1-686'

  CC [M]  /usr/src/v4l-dvb-experimental/v4l/flexcop-pci.o
  CC [M]  /usr/src/v4l-dvb-experimental/v4l/flexcop-usb.o
  CC [M]  /usr/src/v4l-dvb-experimental/v4l/flexcop.o
  CC [M]  /usr/src/v4l-dvb-experimental/v4l/flexcop-fe-tuner.o
  CC [M]  /usr/src/v4l-dvb-experimental/v4l/flexcop-i2c.o
  CC [M]  /usr/src/v4l-dvb-experimental/v4l/flexcop-sram.o
  CC [M]  /usr/src/v4l-dvb-experimental/v4l/flexcop-eeprom.o
  CC [M]  /usr/src/v4l-dvb-experimental/v4l/flexcop-misc.o
  CC [M]  /usr/src/v4l-dvb-experimental/v4l/flexcop-hw-filter.o
  CC [M]  /usr/src/v4l-dvb-experimental/v4l/flexcop-dma.o
  CC [M]  /usr/src/v4l-dvb-experimental/v4l/bttv-driver.o
In file included from
/usr/src/v4l-dvb-experimental/v4l/../linux/include/media/v4l2-common.h:29,
                 from /usr/src/v4l-dvb-experimental/v4l/bttvp.h:37,
                 from /usr/src/v4l-dvb-experimental/v4l/bttv-driver.c:41:

/usr/src/v4l-dvb-experimental/v4l/../linux/include/media/v4l2-dev.h:365:
error: field 'class_dev' has incomplete type
In file included from /usr/src/v4l-dvb-experimental/v4l/../linux/include/media/v4l2-common.h:29,

                 from /usr/src/v4l-dvb-experimental/v4l/bttvp.h:37,
                 from /usr/src/v4l-dvb-experimental/v4l/bttv-driver.c:41:

/usr/src/v4l-dvb-experimental/v4l/../linux/include/media/v4l2-dev.h:394:
warning: 'struct class_device_attribute' declared inside parameter list /usr/src/v4l-dvb-experimental/v4l/../linux/include/media/v4l2-dev.h:394:
warning: its scope is only this definition or declaration, which is probably not what you want /usr/src/v4l-dvb-experimental/v4l/../linux/include/media/v4l2-dev.h: In function 'video_device_create_file':
/usr/src/v4l-dvb-experimental/v4l/../linux/include/media/v4l2-dev.h:396:
error: implicit declaration of function 'class_device_create_file' /usr/src/v4l-dvb-experimental/v4l/../linux/include/media/v4l2-dev.h: At top level:
/usr/src/v4l-dvb-experimental/v4l/../linux/include/media/v4l2-dev.h:403:
warning: 'struct class_device_attribute' declared inside parameter list /usr/src/v4l-dvb-experimental/v4l/../linux/include/media/v4l2-dev.h: In function 'video_device_remove_file':
/usr/src/v4l-dvb-experimental/v4l/../linux/include/media/v4l2-dev.h:405:
error: implicit declaration of function 'class_device_remove_file' In file included from /usr/src/v4l-dvb-experimental/v4l/bttv-driver.c:41:
/usr/src/v4l-dvb-experimental/v4l/bttvp.h:94:1: warning: "clamp" redefined In file included from include/asm/system.h:10,

                 from include/asm/processor.h:17,
                 from include/linux/prefetch.h:14,
                 from include/linux/list.h:6,
                 from include/linux/module.h:9,
                 from /usr/src/v4l-dvb-experimental/v4l/bttv-driver.c:32:

include/linux/kernel.h:379:1: warning: this is the location of the previous definition /usr/src/v4l-dvb-experimental/v4l/bttv-driver.c: In function 'show_card':
/usr/src/v4l-dvb-experimental/v4l/bttv-driver.c:172: warning: type defaults to 'int' in declaration of '__mptr' /usr/src/v4l-dvb-experimental/v4l/bttv-driver.c:172: warning:
initialization from incompatible pointer type /usr/src/v4l-dvb-experimental/v4l/bttv-driver.c: At top level:
/usr/src/v4l-dvb-experimental/v4l/bttv-driver.c:176: error: expected ')' before '(' token /usr/src/v4l-dvb-experimental/v4l/bttv-driver.c: In function 'bttv_register_video':
/usr/src/v4l-dvb-experimental/v4l/bttv-driver.c:4637: error:
'class_device_attr_card' undeclared (first use in this function) /usr/src/v4l-dvb-experimental/v4l/bttv-driver.c:4637: error: (Each undeclared identifier is reported only once /usr/src/v4l-dvb-experimental/v4l/bttv-driver.c:4637: error: for each function it appears in.)
make[2]: *** [/usr/src/v4l-dvb-experimental/v4l/bttv-driver.o] Error 1 make[1]: *** [_module_/usr/src/v4l-dvb-experimental/v4l] Error 2 make[1]: Leaving directory `/usr/src/linux-headers-2.6.26-1-686'
make: *** [default] Erreur 2

Cheers,
Martin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAki2oasACgkQayBuE7eUetACLgCfZQbIVLlKWd4i4U3UMLI05EFi SzkAoNn8gxOjCICANw8iEIwtbPXQN2pT
=BrSZ
-----END PGP SIGNATURE-----

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb