Bugs item #3018676, was opened at 2010-06-20 09:02 Message generated for change (Comment added) made by madsci44 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=106744&aid=3018676&group_id=6744
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: HAL Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: madsci44 (madsci44) Assigned to: John Kasunich (jmkasunich) Summary: Some HAL PCI drivers incompatible with kernel 2.6.34 Initial Comment: EMC2-2.4.1, Kernel 2.6.34, RTAI 3.8 Three of the hal pci device drivers will fail in make due to use of pci_find_device(). As far as I can tell this is due to CONFIG_PCI_LEGACY and related functions - pci_find_device(), pci_find_subsys(), and pci_find_slot() being no longer available in kernel 2.6.34. It seems this occurs only in the following three drivers (hal_motenc.c, hal_vti.c, and opto_ac5.c) - as follows; /home/madsci44/emc2-dev/src/hal/drivers/hal_motenc.c: In function ‘init_module’: /home/madsci44/emc2-dev/src/hal/drivers/hal_motenc.c:294: error: implicit declaration of function ‘pci_find_device’ /home/madsci44/emc2-dev/src/hal/drivers/hal_motenc.c:294: warning: assignment makes pointer from integer without a cast make[2]: *** [/home/madsci44/emc2-dev/src/hal/drivers/hal_motenc.o] Error 1 make[1]: *** [_module_/home/madsci44/emc2-dev/src] Error 2 make: *** [modules] Error 2 make: Leaving directory `/home/madsci44/emc2-dev/src' /home/madsci44/emc2-dev/src/hal/drivers/hal_vti.c: In function ‘vti_autodetect’: /home/madsci44/emc2-dev/src/hal/drivers/hal_vti.c:825: error: implicit declaration of function ‘pci_find_device’ /home/madsci44/emc2-dev/src/hal/drivers/hal_vti.c:825: warning: assignment makes pointer from integer without a cast make[2]: *** [/home/madsci44/emc2-dev/src/hal/drivers/hal_vti.o] Error 1 make[1]: *** [_module_/home/madsci44/emc2-dev/src] Error 2 make: *** [modules] Error 2 make: Leaving directory `/home/madsci44/emc2-dev/src' /home/madsci44/emc2-dev/src/hal/drivers/opto_ac5.c: In function ‘init_module’: /home/madsci44/emc2-dev/src/hal/drivers/opto_ac5.c:96: error: implicit declaration of function ‘pci_find_device’ /home/madsci44/emc2-dev/src/hal/drivers/opto_ac5.c:96: warning: assignment makes pointer from integer without a cast make[2]: *** [/home/madsci44/emc2-dev/src/hal/drivers/opto_ac5.o] Error 1 make[1]: *** [_module_/home/madsci44/emc2-dev/src] Error 2 make: *** [modules] Error 2 make: Leaving directory `/home/madsci44/emc2-dev/src' - madsci44 ---------------------------------------------------------------------- >Comment By: madsci44 (madsci44) Date: 2010-06-20 09:49 Message: I have attached a patch file to this bug report which replaces the pci_find_device with the newer pci_get_device function available in 2.6.34, **I have NO IDEA if it works** - as I do not use the hardware associated with these drivers - but it builds successfully without complaint on my system, I'm also not certain the replacement function is fully compatible so someone should check/test before using. - madsci44 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=106744&aid=3018676&group_id=6744 ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
