HomeFreeBSD

linuxkpi: Fix `sg_alloc_table_from_pages()` to have the same API as Linux

Description

linuxkpi: Fix sg_alloc_table_from_pages() to have the same API as Linux

It now returns a struct scatterlist * pointer instead of an error
code only.

The implementation is incomplete because it doesn't use the prv
argument.

Reviewed by: manu
Approved by: manu
Differential Revision: https://reviews.freebsd.org/D38077

Details

Provenance
dumbbellAuthored on Jan 10 2023, 10:10 AM
Reviewer
manu
Differential Revision
D38077: linuxkpi: Fix `sg_alloc_table_from_pages()` to have the same API as Linux
Parents
rG8c46bd9f8691: linuxkpi: Include `linux/sched/mm.h` from `linux/sched.h`
Branches
Unknown
Tags
Unknown