Closed dimez closed 7 years ago
Which version of GCC are you using?
I've just merged a PR from @philipl so try pulling master and compiling now.
Cannot compile kernel 4.9.4 make -C /lib/modules/4.9.4-040904-generic/build SUBDIRS=/home/khseal/crystalhd/driver/linux modules make[1]: вход в каталог «/usr/src/linux-headers-4.9.4-040904-generic» CC [M] /home/khseal/crystalhd/driver/linux/crystalhd_lnx.o CC [M] /home/khseal/crystalhd/driver/linux/crystalhd_misc.o /home/khseal/crystalhd/driver/linux/crystalhd_misc.c: In function ‘crystalhd_map_dio’: /home/khseal/crystalhd/driver/linux/crystalhd_misc.c:658:12: error: passing argument 7 of ‘get_user_pages_remote’ from incompatible pointer type [-Werror=incompatible-pointer-types] 0, dio->pages, NULL); ^ In file included from /home/khseal/crystalhd/driver/linux/crystalhd_lnx.h:34:0, from /home/khseal/crystalhd/driver/linux/crystalhd_misc.c:30: ./include/linux/mm.h:1276:6: note: expected ‘struct vm_area_struct ’ but argument is of type ‘struct page ’ long get_user_pages_remote(struct task_struct tsk, struct mm_struct mm, ^ /home/khseal/crystalhd/driver/linux/crystalhd_misc.c:657:8: error: too many arguments to function ‘get_user_pages_remote’ res = get_user_pages_remote(current, current->mm, uaddr, nr_pages, rw == READ, ^ In file included from /home/khseal/crystalhd/driver/linux/crystalhd_lnx.h:34:0, from /home/khseal/crystalhd/driver/linux/crystalhd_misc.c:30: ./include/linux/mm.h:1276:6: note: declared here long get_user_pages_remote(struct task_struct tsk, struct mm_struct mm, ^ cc1: all warnings being treated as errors scripts/Makefile.build:293: ошибка выполнения рецепта для цели «/home/khseal/crystalhd/driver/linux/crystalhd_misc.o» make[2]: *** [/home/khseal/crystalhd/driver/linux/crystalhd_misc.o] Ошибка 1
gcc --version gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
Well, yes. 4.9 requires different changes. This issue was about 4.8.
I used the 4.8 Kernel and are not compiled. Errors were similar.
I've just merged a PR from @philipl so try pulling master and compiling now.
Thank you! All ok now.