FreeBSD: ignore some includes when not building kernel
commitefeb60b86a22b4d58c9eaf73c862bbe0cd3a7fc3
authorMartin Matuška <mm@FreeBSD.org>
Wed, 9 Oct 2024 16:27:46 +0000 (9 18:27 +0200)
committerGitHub <noreply@github.com>
Wed, 9 Oct 2024 16:27:46 +0000 (9 09:27 -0700)
treeda71e333a6ca94518792651638284996c5e3498e
parent4319e714022ace9e74659c15be0af3cd2f22d31a
FreeBSD: ignore some includes when not building kernel

The function abd_alloc_from_pages() is used only in kernel.
Excluding sys/vm.h, and vm/vm_page.h includes avoids dependency
problems.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Martin Matuska <mm@FreeBSD.org>
Closes #16616
include/os/freebsd/zfs/sys/abd_os.h