Forum Discussion
Altera_Forum
Honored Contributor
10 years ago --- Quote Start --- I should probably post a patch file at some point, but it is the __devinit, __devexit and other such macros that are causing issues as they are not defined in the altera lib and therefore I assume they are defined in the older kernel headers. Remove all these and try again. Cheers B --- Quote End --- Thank you so much for you reply soon! I solved the problem mentioned above! But I got a new error message as following: Using kernel source files from /usr/src/linux-headers-3.16.0-30-generic make: Entering directory `/usr/src/linux-headers-3.16.0-30-generic' CC [M] /home/storm/altera/15.0/hld/board/de5net_network/linux64/driver/aclpci_cmd.o /home/storm/altera/15.0/hld/board/de5net_network/linux64/driver/aclpci_cmd.c: In function ‘aclpci_exec_cmd’: /home/storm/altera/15.0/hld/board/de5net_network/linux64/driver/aclpci_cmd.c:83:12: error: void value not ignored as it ought to be result = pci_restore_state(aclpci->pci_dev); ^ /home/storm/altera/15.0/hld/board/de5net_network/linux64/driver/aclpci_cmd.c: In function ‘get_aer_uerr_mask_reg’: /home/storm/altera/15.0/hld/board/de5net_network/linux64/driver/aclpci_cmd.c:438:10: error: ‘struct pci_dev’ has no member named ‘aer_firmware_first’ if (dev->aer_firmware_first) { ^ make[1]: *** [/home/storm/altera/15.0/hld/board/de5net_network/linux64/driver/aclpci_cmd.o] Error 1 make: *** [_module_/home/storm/altera/15.0/hld/board/de5net_network/linux64/driver] Error 2 make: Leaving directory `/usr/src/linux-headers-3.16.0-30-generic' It that the same problem above? I am looking for your reply online and hope I would deal with it. Thank you, Jiawen