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

Compile Failure with Ubuntu 24.04 #25

Open
Ardy123 opened this issue Sep 10, 2024 · 2 comments
Open

Compile Failure with Ubuntu 24.04 #25

Ardy123 opened this issue Sep 10, 2024 · 2 comments

Comments

@Ardy123
Copy link

Ardy123 commented Sep 10, 2024

First off, thank you for putting this together.

Second, I noticed a compile error when it attempts to compile the kernel module for ubuntu 24.04 (6.8.0-41-generic #41-Ubuntu SMP PREEMPT_DYNAMIC)

This is with the 340.108-patched-6.8 release.

the compiler error is...

   /tmp/selfgz5614/kernel/nv-linux.h:2262:52: error: passing argument 6 of 'get_user_pages_remote' from incompatible pointer type [-Werror=incompatible-pointer-types]
    2262 |                                             pages, vmas, NULL);
         |                                                    ^~~~
         |                                                    |
         |                                                    struct vm_area_struct **
   In file included from /tmp/selfgz5614/kernel/nv-linux.h:68:
   ./include/linux/mm.h:2445:33: note: expected 'int *' but argument is of type 'struct vm_area_struct **'
    2445 |                            int *locked);
         |                            ~~~~~^~~~~~
   /tmp/selfgz5614/kernel/nv-linux.h:2261:23: error: too many arguments to function 'get_user_pages_remote'
    2261 |                return get_user_pages_remote(mm, start, nr_pages, flags,
         |                       ^~~~~~~~~~~~~~~~~~~~~
   ./include/linux/mm.h:2442:6: note: declared here
    2442 | long get_user_pages_remote(struct mm_struct *mm,
         |      ^~~~~~~~~~~~~~~~~~~~~

Thanks

@nautiluschan
Copy link

+1

@lproven
Copy link

lproven commented Nov 1, 2024

also +1

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