HomeFreeBSD

Linux 5.8 compat: __vmalloc()

Description

Linux 5.8 compat: __vmalloc()

The pgprot argument has been removed from __vmalloc in Linux 5.8,
being PAGE_KERNEL always now [1].

Detect this during configure and define a wrapper for older kernels.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/mm/vmalloc.c?h=next-20200605&id=88dca4ca5a93d2c09e5bbc6a62fbfc3af83c4fca

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Co-authored-by: Sebastian Gottschall <s.gottschall@dd-wrt.com>
Co-authored-by: Michael Niewöhner <foss@mniewoehner.de>
Signed-off-by: Sebastian Gottschall <s.gottschall@dd-wrt.com>
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
Closes #10422

Details

Provenance
Michael Niewöhner <c0d3z3r0@users.noreply.github.com>Authored on Jun 8 2020, 11:32 PM
GitHub <noreply@github.com>Committed on Jun 8 2020, 11:32 PM
Parents
rG529246df96e2: Restore support for in-kernel ZFS ioctls
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG080102a1b686: Linux 5.8 compat: __vmalloc() (authored by Michael Niewöhner <c0d3z3r0@users.noreply.github.com>).Jun 8 2020, 11:32 PM