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

cannot find value _UFFDIO_WRITEPROTECT in this scope #3

Closed
musitdev opened this issue Mar 23, 2023 · 2 comments
Closed

cannot find value _UFFDIO_WRITEPROTECT in this scope #3

musitdev opened this issue Mar 23, 2023 · 2 comments

Comments

@musitdev
Copy link

I try to build on Ubuntu 2004, and I've this error during the build of userfaultfd-rs crate:

  error[E0425]: cannot find value `_UFFDIO_WRITEPROTECT` in this scope
  --> src/linux5_7.rs:20:74
   |
20 |     1 << _UFFDIO_WAKE | 1 << _UFFDIO_COPY | 1 << _UFFDIO_ZEROPAGE | 1 << _UFFDIO_WRITEPROTECT;
   |                                                                          ^^^^^^^^^^^^^^^^^^^^ help: a constant with a similar name exists: `UFFDIO_WRITEPROTECT`
...
38 | pub const UFFDIO_WRITEPROTECT: u32 = 0xc018aa06;
   | ------------------------------------------------ similarly named constant `UFFDIO_WRITEPROTECT` defined here

I try several kernel headers versions after 5.7 but none works.

@fasterthanlime
Copy link
Owner

@musitdev I've pushed a fix - mevi doesn't even need those 5.7+ functions anyway. Enjoy!

@musitdev
Copy link
Author

Super thank, it works.

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

2 participants