Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys don't include opt_user_ldt.h when it is not needed
details: https://anonhg.NetBSD.org/src/rev/bdb740c13e87
branches: trunk
changeset: 936112:bdb740c13e87
user: maxv <maxv%NetBSD.org@localhost>
date: Sun Jul 19 13:55:08 2020 +0000
description:
don't include opt_user_ldt.h when it is not needed
diffstat:
sys/arch/amd64/amd64/netbsd32_machdep_13.c | 5 ++---
sys/arch/i386/include/pmap.h | 3 +--
sys/arch/x86/include/cpu.h | 5 +----
sys/arch/xen/x86/xen_pmap.c | 5 ++---
sys/compat/linux/arch/i386/linux_exec_machdep.c | 8 ++------
5 files changed, 8 insertions(+), 18 deletions(-)
diffs (101 lines):
diff -r 5465b05a93c0 -r bdb740c13e87 sys/arch/amd64/amd64/netbsd32_machdep_13.c
--- a/sys/arch/amd64/amd64/netbsd32_machdep_13.c Sun Jul 19 13:21:56 2020 +0000
+++ b/sys/arch/amd64/amd64/netbsd32_machdep_13.c Sun Jul 19 13:55:08 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_machdep_13.c,v 1.3 2019/11/13 16:11:27 pgoyette Exp $ */
+/* $NetBSD: netbsd32_machdep_13.c,v 1.4 2020/07/19 13:55:09 maxv Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -36,12 +36,11 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep_13.c,v 1.3 2019/11/13 16:11:27 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep_13.c,v 1.4 2020/07/19 13:55:09 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
#include "opt_execfmt.h"
-#include "opt_user_ldt.h"
#include "opt_mtrr.h"
#endif
diff -r 5465b05a93c0 -r bdb740c13e87 sys/arch/i386/include/pmap.h
--- a/sys/arch/i386/include/pmap.h Sun Jul 19 13:21:56 2020 +0000
+++ b/sys/arch/i386/include/pmap.h Sun Jul 19 13:55:08 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.h,v 1.125 2020/05/15 22:17:45 ad Exp $ */
+/* $NetBSD: pmap.h,v 1.126 2020/07/19 13:55:09 maxv Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -64,7 +64,6 @@
#define _I386_PMAP_H_
#if defined(_KERNEL_OPT)
-#include "opt_user_ldt.h"
#include "opt_xen.h"
#endif
diff -r 5465b05a93c0 -r bdb740c13e87 sys/arch/x86/include/cpu.h
--- a/sys/arch/x86/include/cpu.h Sun Jul 19 13:21:56 2020 +0000
+++ b/sys/arch/x86/include/cpu.h Sun Jul 19 13:55:08 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.127 2020/07/14 00:45:53 yamaguchi Exp $ */
+/* $NetBSD: cpu.h,v 1.128 2020/07/19 13:55:09 maxv Exp $ */
/*
* Copyright (c) 1990 The Regents of the University of California.
@@ -48,9 +48,6 @@
#if defined(_KERNEL_OPT)
#include "opt_xen.h"
#include "opt_svs.h"
-#ifdef i386
-#include "opt_user_ldt.h"
-#endif
#endif
/*
diff -r 5465b05a93c0 -r bdb740c13e87 sys/arch/xen/x86/xen_pmap.c
--- a/sys/arch/xen/x86/xen_pmap.c Sun Jul 19 13:21:56 2020 +0000
+++ b/sys/arch/xen/x86/xen_pmap.c Sun Jul 19 13:55:08 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xen_pmap.c,v 1.37 2020/01/07 13:48:01 ad Exp $ */
+/* $NetBSD: xen_pmap.c,v 1.38 2020/07/19 13:55:09 maxv Exp $ */
/*
* Copyright (c) 2007 Manuel Bouyer.
@@ -101,9 +101,8 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xen_pmap.c,v 1.37 2020/01/07 13:48:01 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xen_pmap.c,v 1.38 2020/07/19 13:55:09 maxv Exp $");
-#include "opt_user_ldt.h"
#include "opt_lockdebug.h"
#include "opt_multiprocessor.h"
#include "opt_xen.h"
diff -r 5465b05a93c0 -r bdb740c13e87 sys/compat/linux/arch/i386/linux_exec_machdep.c
--- a/sys/compat/linux/arch/i386/linux_exec_machdep.c Sun Jul 19 13:21:56 2020 +0000
+++ b/sys/compat/linux/arch/i386/linux_exec_machdep.c Sun Jul 19 13:55:08 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_exec_machdep.c,v 1.18 2017/08/12 07:21:57 maxv Exp $ */
+/* $NetBSD: linux_exec_machdep.c,v 1.19 2020/07/19 13:55:08 maxv Exp $ */
/*-
* Copyright (c) 2004 The NetBSD Foundation, Inc.
@@ -30,11 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_exec_machdep.c,v 1.18 2017/08/12 07:21:57 maxv Exp $");
-
-#if defined(_KERNEL_OPT)
-#include "opt_user_ldt.h"
-#endif
+__KERNEL_RCSID(0, "$NetBSD: linux_exec_machdep.c,v 1.19 2020/07/19 13:55:08 maxv Exp $");
#include <sys/param.h>
#include <sys/systm.h>
Home |
Main Index |
Thread Index |
Old Index