Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Mar 2023 08:43:03 GMT
From:      Dmitry Chagin <dchagin@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: a0f00d737c7a - stable/13 - linux(4): Cleanup sys/sysent.h from linux_util
Message-ID:  <202303010843.3218h3CP028383@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by dchagin:

URL: https://cgit.FreeBSD.org/src/commit/?id=a0f00d737c7ac6bf74ea332ac63507410e3de1ba

commit a0f00d737c7ac6bf74ea332ac63507410e3de1ba
Author:     Dmitry Chagin <dchagin@FreeBSD.org>
AuthorDate: 2023-02-14 14:46:31 +0000
Commit:     Dmitry Chagin <dchagin@FreeBSD.org>
CommitDate: 2023-03-01 08:41:50 +0000

    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
    
    (cherry picked from commit 513eb69edf382923bff1b09edda64010d89f74bd)
---
 sys/compat/linux/linux_futex.c | 1 +
 sys/compat/linux/linux_ipc.c   | 1 +
 sys/compat/linux/linux_misc.c  | 1 +
 sys/compat/linux/linux_util.h  | 1 -
 4 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/sys/compat/linux/linux_futex.c b/sys/compat/linux/linux_futex.c
index 7d75889d2dce..aed6bbf94cee 100644
--- a/sys/compat/linux/linux_futex.c
+++ b/sys/compat/linux/linux_futex.c
@@ -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
diff --git a/sys/compat/linux/linux_ipc.c b/sys/compat/linux/linux_ipc.c
index 5f0c22b49e58..a72b0a9709b5 100644
--- a/sys/compat/linux/linux_ipc.c
+++ b/sys/compat/linux/linux_ipc.c
@@ -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>
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index 5b9cb4cb7b49..823b79cc373d 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -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>
diff --git a/sys/compat/linux/linux_util.h b/sys/compat/linux/linux_util.h
index 044116f76b57..37445ad0af27 100644
--- a/sys/compat/linux/linux_util.h
+++ b/sys/compat/linux/linux_util.h
@@ -36,7 +36,6 @@
 #ifndef	_LINUX_UTIL_H_
 #define	_LINUX_UTIL_H_
 
-#include <sys/sysent.h>
 #include <sys/uio.h>
 
 MALLOC_DECLARE(M_LINUX);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303010843.3218h3CP028383>