Created
November 1, 2013 14:00
-
-
Save like-a-bause/7265859 to your computer and use it in GitHub Desktop.
Trying to Compile a 2.6 PCIe Driver for 3.11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Using kernel source files from /usr/src/linux-3.11.6-1-ARCH | |
make: Entering directory '/usr/src/linux-3.11.6-1-ARCH' | |
CC [M] /home/felix/src/MasterThesis/Using_PCIe_on_DE4_design_files/driver_wiki/aclpci_queue.o | |
CC [M] /home/felix/src/MasterThesis/Using_PCIe_on_DE4_design_files/driver_wiki/aclpci.o | |
/home/felix/src/MasterThesis/Using_PCIe_on_DE4_design_files/driver_wiki/aclpci.c:51:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘probe’ | |
static int __devinit probe(struct pci_dev *dev, const struct pci_device_id *id); | |
^ | |
/home/felix/src/MasterThesis/Using_PCIe_on_DE4_design_files/driver_wiki/aclpci.c:52:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘init_chrdev’ | |
static int __devinit init_chrdev (struct aclpci_dev *aclpci); | |
^ | |
/home/felix/src/MasterThesis/Using_PCIe_on_DE4_design_files/driver_wiki/aclpci.c:53:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘remove’ | |
static void __devexit remove(struct pci_dev *dev); | |
^ | |
/home/felix/src/MasterThesis/Using_PCIe_on_DE4_design_files/driver_wiki/aclpci.c:55:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘scan_bars’ | |
static int __devinit scan_bars(struct aclpci_dev *aclpci, struct pci_dev *dev); | |
^ | |
/home/felix/src/MasterThesis/Using_PCIe_on_DE4_design_files/driver_wiki/aclpci.c:56:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘map_bars’ | |
static int __devinit map_bars(struct aclpci_dev *aclpci, struct pci_dev *dev); | |
^ | |
/home/felix/src/MasterThesis/Using_PCIe_on_DE4_design_files/driver_wiki/aclpci.c:72:12: error: ‘probe’ undeclared here (not in a function) | |
.probe = probe, | |
^ | |
/home/felix/src/MasterThesis/Using_PCIe_on_DE4_design_files/driver_wiki/aclpci.c:73:13: error: ‘remove’ undeclared here (not in a function) | |
.remove = remove, | |
^ | |
/home/felix/src/MasterThesis/Using_PCIe_on_DE4_design_files/driver_wiki/aclpci.c:91:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘init_chrdev’ | |
static int __devinit init_chrdev (struct aclpci_dev *aclpci) { | |
^ | |
/home/felix/src/MasterThesis/Using_PCIe_on_DE4_design_files/driver_wiki/aclpci.c:459:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘probe’ | |
static int __devinit probe(struct pci_dev *dev, const struct pci_device_id *id) { | |
^ | |
/home/felix/src/MasterThesis/Using_PCIe_on_DE4_design_files/driver_wiki/aclpci.c:549:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘scan_bars’ | |
static int __devinit scan_bars(struct aclpci_dev *aclpci, struct pci_dev *dev) | |
^ | |
/home/felix/src/MasterThesis/Using_PCIe_on_DE4_design_files/driver_wiki/aclpci.c:570:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘map_bars’ | |
static int __devinit map_bars(struct aclpci_dev *aclpci, struct pci_dev *dev) | |
^ | |
/home/felix/src/MasterThesis/Using_PCIe_on_DE4_design_files/driver_wiki/aclpci.c:618:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘remove’ | |
static void __devexit remove(struct pci_dev *dev) { | |
^ | |
/home/felix/src/MasterThesis/Using_PCIe_on_DE4_design_files/driver_wiki/aclpci.c:606:13: warning: ‘free_bars’ defined but not used [-Wunused-function] | |
static void free_bars(struct aclpci_dev *aclpci, struct pci_dev *dev) { | |
^ | |
/home/felix/src/MasterThesis/Using_PCIe_on_DE4_design_files/driver_wiki/aclpci.c:419:24: warning: ‘find_upstream_dev’ defined but not used [-Wunused-function] | |
static struct pci_dev* find_upstream_dev (struct pci_dev *dev) { | |
^ | |
scripts/Makefile.build:308: recipe for target '/home/felix/src/MasterThesis/Using_PCIe_on_DE4_design_files/driver_wiki/aclpci.o' failed | |
make[1]: *** [/home/felix/src/MasterThesis/Using_PCIe_on_DE4_design_files/driver_wiki/aclpci.o] Error 1 | |
Makefile:1225: recipe for target '_module_/home/felix/src/MasterThesis/Using_PCIe_on_DE4_design_files/driver_wiki' failed | |
make: *** [_module_/home/felix/src/MasterThesis/Using_PCIe_on_DE4_design_files/driver_wiki] Error 2 | |
make: Leaving directory '/usr/src/linux-3.11.6-1-ARCH' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello! Have you solved this problem?