mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-22 03:04:34 +01:00
LinuxKPI: Remove vmas argument from get_user_pages on KPI layer
To chase Linux kernel 6.5 Sponsored by: Serenity CyberSecurity, LLC MFC after: 1 week Reviewed by: manu, emaste Differential Revision: https://reviews.freebsd.org/D45614
This commit is contained in:
parent
889f74af66
commit
e1b0f431a1
@ -279,14 +279,27 @@ extern long
|
||||
get_user_pages(unsigned long start, unsigned long nr_pages,
|
||||
unsigned int gup_flags, struct page **,
|
||||
struct vm_area_struct **);
|
||||
#if defined(LINUXKPI_VERSION) && LINUXKPI_VERSION >= 60500
|
||||
#define get_user_pages(start, nr_pages, gup_flags, pages) \
|
||||
get_user_pages(start, nr_pages, gup_flags, pages, NULL)
|
||||
#endif
|
||||
|
||||
#if defined(LINUXKPI_VERSION) && LINUXKPI_VERSION >= 60500
|
||||
static inline long
|
||||
pin_user_pages(unsigned long start, unsigned long nr_pages,
|
||||
unsigned int gup_flags, struct page **pages)
|
||||
{
|
||||
return (get_user_pages(start, nr_pages, gup_flags, pages));
|
||||
}
|
||||
#else
|
||||
static inline long
|
||||
pin_user_pages(unsigned long start, unsigned long nr_pages,
|
||||
unsigned int gup_flags, struct page **pages,
|
||||
struct vm_area_struct **vmas)
|
||||
{
|
||||
return get_user_pages(start, nr_pages, gup_flags, pages, vmas);
|
||||
return (get_user_pages(start, nr_pages, gup_flags, pages, vmas));
|
||||
}
|
||||
#endif
|
||||
|
||||
extern int
|
||||
__get_user_pages_fast(unsigned long start, int nr_pages, int write,
|
||||
|
Loading…
Reference in New Issue
Block a user