KendekKicseréltem, meg még egy fájlra amire hivatkozott, de most más hibát ír:
root@N150:/home/marci/Asztal/crystalhd/driver/linux# make
make -C /lib/modules/3.13.0-29-generic/build SUBDIRS=/home/marci/Asztal/crystalhd/driver/linux modules
make[1]: Entering directory `/usr/src/linux-headers-3.13.0-29-generic'
CC [M] /home/marci/Asztal/crystalhd/driver/linux/crystalhd_lnx.o
/home/marci/Asztal/crystalhd/driver/linux/crystalhd_lnx.c:356:2: error: unknown field ‘ioctl’ specified in initializer
.ioctl = chd_dec_ioctl,
^
/home/marci/Asztal/crystalhd/driver/linux/crystalhd_lnx.c:356:2: error: initialization from incompatible pointer type [-Werror]
/home/marci/Asztal/crystalhd/driver/linux/crystalhd_lnx.c:356:2: error: (near initialization for ‘chd_dec_fops.llseek’) [-Werror]
/home/marci/Asztal/crystalhd/driver/linux/crystalhd_lnx.c:361:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘chd_dec_init_chdev’
static int __devinit chd_dec_init_chdev(struct crystalhd_adp *adp)
^
/home/marci/Asztal/crystalhd/driver/linux/crystalhd_lnx.c:428:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘chd_dec_release_chdev’
static void __devexit chd_dec_release_chdev(struct crystalhd_adp *adp)
^
/home/marci/Asztal/crystalhd/driver/linux/crystalhd_lnx.c:454:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘chd_pci_reserve_mem’
static int __devinit chd_pci_reserve_mem(struct crystalhd_adp *pinfo)
^
/home/marci/Asztal/crystalhd/driver/linux/crystalhd_lnx.c:512:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘chd_pci_release_mem’
static void __devexit chd_pci_release_mem(struct crystalhd_adp *pinfo)
^
/home/marci/Asztal/crystalhd/driver/linux/crystalhd_lnx.c:527:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘chd_dec_pci_remove’
static void __devexit chd_dec_pci_remove(struct pci_dev *pdev)
^
/home/marci/Asztal/crystalhd/driver/linux/crystalhd_lnx.c:555:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘chd_dec_pci_probe’
static int __devinit chd_dec_pci_probe(struct pci_dev *pdev,
^
/home/marci/Asztal/crystalhd/driver/linux/crystalhd_lnx.c:729:14: error: ‘chd_dec_pci_probe’ undeclared here (not in a function)
.probe = chd_dec_pci_probe,
^
/home/marci/Asztal/crystalhd/driver/linux/crystalhd_lnx.c:730:2: error: implicit declaration of function ‘__devexit_p’ [-Werror=implicit-function-declaration]
.remove = __devexit_p(chd_dec_pci_remove),
^
/home/marci/Asztal/crystalhd/driver/linux/crystalhd_lnx.c:730:26: error: ‘chd_dec_pci_remove’ undeclared here (not in a function)
.remove = __devexit_p(chd_dec_pci_remove),
^
/home/marci/Asztal/crystalhd/driver/linux/crystalhd_lnx.c:22:22: error: ‘crystalhd_class’ defined but not used [-Werror=unused-variable]
static struct class *crystalhd_class;
^
cc1: all warnings being treated as errors
make[2]: *** [/home/marci/Asztal/crystalhd/driver/linux/crystalhd_lnx.o] Error 1
make[1]: *** [_module_/home/marci/Asztal/crystalhd/driver/linux] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.13.0-29-generic'
make: *** [all] Error 2