From: Axel T. <Axe...@AT...> - 2006-01-07 11:29:04
|
Hi, for kernels 2.4.0-22 kcompat.h in latest CVS defines #if KERNEL_VERSION(2, 4, 0) <=3D LINUX_VERSION_CODE && LINUX_VERSION_CODE <= KERNEL_VERSION(2, 4, 22) static inline char *pci_name(struct pci_dev *pdev) { return pdev->slot_name; } #endif // 2.4.0 <=3D kernel < 2.4.22 but struct pci_dev hasn't been defined yet (missing includes?) In file included from lirc_dev.c:61: =2E./../drivers/kcompat.h:212: warning: `struct pci_dev' declared inside pa= rameter list =2E./../drivers/kcompat.h:212: warning: its scope is only this definition o= r declaration, which is probably not what you want =2E./../drivers/kcompat.h: In function `pci_name': =2E./../drivers/kcompat.h:214: dereferencing pointer to incomplete type make[3]: *** [lirc_dev.o] Error 1 Thanks! --=20 Axel.Thimm at ATrpms.net |