linux(4): Cleanup sys/sysent.h from linux_util

Include sys/sysent.h directly where it needed. The linux_util.h included
in a most source files of the Linuxulator, avoid collecting a rarely used
includes here.

MFC after:		2 weeks
This commit is contained in:
Dmitry Chagin 2023-02-14 17:46:31 +03:00
parent 31e938c531
commit 513eb69edf
4 changed files with 3 additions and 1 deletions

View File

@ -38,6 +38,7 @@ __FBSDID("$FreeBSD$");
#include <sys/priv.h>
#include <sys/proc.h>
#include <sys/sched.h>
#include <sys/sysent.h>
#include <sys/umtxvar.h>
#ifdef COMPAT_LINUX32

View File

@ -39,6 +39,7 @@ __FBSDID("$FreeBSD$");
#include <sys/sem.h>
#include <sys/shm.h>
#include <sys/stat.h>
#include <sys/sysent.h>
#ifdef COMPAT_LINUX32
#include <machine/../linux32/linux.h>

View File

@ -64,6 +64,7 @@ __FBSDID("$FreeBSD$");
#include <sys/stat.h>
#include <sys/syscallsubr.h>
#include <sys/sysctl.h>
#include <sys/sysent.h>
#include <sys/sysproto.h>
#include <sys/systm.h>
#include <sys/time.h>

View File

@ -36,7 +36,6 @@
#ifndef _LINUX_UTIL_H_
#define _LINUX_UTIL_H_
#include <sys/sysent.h>
#include <sys/uio.h>
MALLOC_DECLARE(M_LINUX);