git: kernel: Don't include <sys/user.h> in kernel code.
Sascha Wildner
swildner at crater.dragonflybsd.org
Sat May 18 08:12:13 PDT 2019
commit 2a7bd4d84ab6a1cff364e4331211d1184dafa0cf
Author: Sascha Wildner <saw at online.de>
Date: Sat May 18 17:11:58 2019 +0200
kernel: Don't include <sys/user.h> in kernel code.
There is really no point in doing that because its main purpose is to
expose kernel structures to userland. The majority of cases wasn't
needed at all and the rest required only a couple of other includes.
Summary of changes:
sys/dev/disk/iscsi/initiator/isc_soc.c | 1 -
sys/kern/imgact_aout.c | 2 --
sys/kern/init_main.c | 1 -
sys/kern/kern_exec.c | 1 -
sys/kern/kern_exit.c | 1 -
sys/kern/kern_proc.c | 2 +-
sys/kern/sys_process.c | 2 --
sys/kern/sys_vmm.c | 5 ++++-
sys/platform/pc64/x86_64/db_trace.c | 2 --
sys/platform/pc64/x86_64/machdep.c | 3 +--
sys/platform/pc64/x86_64/mp_machdep.c | 1 -
sys/platform/pc64/x86_64/mptable.c | 1 -
sys/platform/pc64/x86_64/pmap.c | 1 -
sys/platform/pc64/x86_64/tls.c | 2 +-
sys/platform/vkernel64/platform/pmap.c | 2 +-
sys/platform/vkernel64/x86_64/cpu_regs.c | 4 ++--
sys/platform/vkernel64/x86_64/db_trace.c | 2 --
sys/platform/vkernel64/x86_64/tls.c | 2 +-
sys/vfs/procfs/procfs_mem.c | 1 -
sys/vm/vm_glue.c | 4 +---
20 files changed, 12 insertions(+), 28 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2a7bd4d84ab6a1cff364e4331211d1184dafa0cf
--
DragonFly BSD source repository
More information about the Commits
mailing list