Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error on fl2000_surface.c #6

Closed
Cxarli opened this issue Aug 25, 2017 · 2 comments
Closed

build error on fl2000_surface.c #6

Cxarli opened this issue Aug 25, 2017 · 2 comments

Comments

@Cxarli
Copy link
Contributor

Cxarli commented Aug 25, 2017

/FL2000/src/fl2000_surface.c: In function ‘fl2000_surface_pin_down’:
/FL2000/src/fl2000_surface.c:182:3: error: implicit declaration of function ‘page_cache_release’; did you mean ‘pagecache_get_page’? [-Werror=implicit-function-declaration]
   page_cache_release(pages[i]);
   ^~~~~~~~~~~~~~~~~~
   pagecache_get_page

I used KERNEL_PATH = /usr/lib/modules/`uname -r`/build in the Makefile.

uname -r gives 4.12.8-2-ARCH

I have the linux-headers package installed (version 4.12.8-2)

@Cxarli Cxarli changed the title build error on fl2000_surface.c build error on fl2000_surface.c Aug 25, 2017
@midaszhou
Copy link

midaszhou commented Sep 3, 2017

Try to use put_page(pages[i]) instead.

@fresco-fl2000
Copy link
Collaborator

I've fixed the compiler errors on kernel 4.11.0, and usb_control_msg() failure. Starting from some kernel version, the USB core discriminates against data buffer from stack (eg. local variables) when using usb_control_transfer.

The following line shows the core team decides that buffer allocated from vmalloc() is banned when the client driver wishes to call usb_control_msg(). This is really rediculous.

http://elixir.free-electrons.com/linux/v3.18/source/drivers/usb/core/hcd.c#L1503

anyway, please try the latest code and see if it helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants