Skip to content
This repository was archived by the owner on Sep 18, 2025. It is now read-only.

Compile Failure with Ubuntu 24.04 #25

@Ardy123

Description

@Ardy123

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions