From: Axel T. <Axe...@AT...> - 2006-01-07 15:44:41
|
Hi, On Sat, Jan 07, 2006 at 01:45:00PM +0100, Christoph Bartelmus wrote: > Axel Thimm "Axe...@AT..." wrote: > > for kernels 2.4.0-22 kcompat.h in latest CVS defines > [...] > > but struct pci_dev hasn't been defined yet (missing includes?) >=20 > Does the attached patch help? Thanks, I had done exactly the same, but then found out that pci_name would be multiply defined on Red Hat kernels (see my other post that crossposted this one). So maybe for vanilla kernels it will help, but I can't say. > Index: drivers/kcompat.h > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /cvsroot/lirc/lirc/drivers/kcompat.h,v > retrieving revision 5.23 > diff -u -u -r5.23 kcompat.h > +++ drivers/kcompat.h 7 Jan 2006 12:43:15 -0000 > @@ -209,6 +209,7 @@ > #endif > =20 > #if KERNEL_VERSION(2, 4, 0) <=3D LINUX_VERSION_CODE && LINUX_VERSION_COD= E < KERNEL_VERSION(2, 4, 22) > +#include <linux/pci.h> > static inline char *pci_name(struct pci_dev *pdev) > { > return pdev->slot_name; --=20 Axel.Thimm at ATrpms.net |