Giter Club home page Giter Club logo

Comments (6)

dbason avatar dbason commented on July 18, 2024 1

Which version of GCC are you using?

from crystalhd.

dbason avatar dbason commented on July 18, 2024 1

I've just merged a PR from @philipl so try pulling master and compiling now.

from crystalhd.

khseal avatar khseal commented on July 18, 2024

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.

philipl avatar philipl commented on July 18, 2024

Well, yes. 4.9 requires different changes. This issue was about 4.8.

from crystalhd.

khseal avatar khseal commented on July 18, 2024

I used the 4.8 Kernel and are not compiled.
Errors were similar.

from crystalhd.

dimez avatar dimez commented on July 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.