Comments (6)
Which version of GCC are you using?
from crystalhd.
I've just merged a PR from @philipl so try pulling master and compiling now.
from crystalhd.
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
from crystalhd.
Well, yes. 4.9 requires different changes. This issue was about 4.8.
from crystalhd.
I used the 4.8 Kernel and are not compiled.
Errors were similar.
from crystalhd.
I've just merged a PR from @philipl so try pulling master and compiling now.
Thank you! All ok now.
from crystalhd.
Related Issues (14)
- Cannot compile on 4.4.0-57-generic #78-Ubuntu 16.04 32-bit HOT 2
- Cannot compile with kernel 4.9 HOT 2
- Failure to compile driver with the latest commit
- Blank screen when decoding H264 in VLC?
- Does not compile on 4.9.0 HOT 1
- Build fails on 4.19
- Cannot compile on recent Ubuntu 16.04LTS 4.4.0 kernels HOT 6
- Build failed on kernel 5.19
- get_user_pages error with gcc 4.9.2 and kernel 4.6.3 HOT 2
- error in function chd_pci_reserve_mem HOT 3
- Kernel signature HOT 8
- Getting more done in GitHub with ZenHub
- Problem after suspend mode HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crystalhd.