Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Include internal definitions (uvm/uvm.h) only where...



details:   https://anonhg.NetBSD.org/src/rev/e13e236654ef
branches:  trunk
changeset: 760915:e13e236654ef
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Mon Jan 17 07:13:31 2011 +0000

description:
Include internal definitions (uvm/uvm.h) only where necessary.

diffstat:

 sys/kern/exec_macho.c        |  6 +++---
 sys/kern/exec_subr.c         |  6 +++---
 sys/kern/init_main.c         |  6 +++---
 sys/kern/kern_idle.c         |  6 +++---
 sys/kern/kern_malloc_debug.c |  6 +++---
 sys/kern/kern_proc.c         |  6 +++---
 sys/kern/kern_sig.c          |  6 +++---
 sys/kern/subr_pool.c         |  6 +++---
 sys/kern/sys_pipe.c          |  6 +++---
 sys/kern/uipc_mbuf.c         |  6 +++---
 sys/kern/uipc_socket.c       |  8 +++++---
 sys/kern/vfs_bio.c           |  6 +++---
 sys/kern/vfs_subr.c          |  6 +++---
 13 files changed, 41 insertions(+), 39 deletions(-)

diffs (truncated from 353 to 300 lines):

diff -r a653d0ee32fb -r e13e236654ef sys/kern/exec_macho.c
--- a/sys/kern/exec_macho.c     Mon Jan 17 07:07:36 2011 +0000
+++ b/sys/kern/exec_macho.c     Mon Jan 17 07:13:31 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exec_macho.c,v 1.44 2010/11/19 06:44:42 dholland Exp $ */
+/*     $NetBSD: exec_macho.c,v 1.45 2011/01/17 07:13:31 uebayasi Exp $ */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: exec_macho.c,v 1.44 2010/11/19 06:44:42 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: exec_macho.c,v 1.45 2011/01/17 07:13:31 uebayasi Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -45,7 +45,7 @@
 #include <sys/mount.h>
 #include <sys/stat.h>
 
-#include <uvm/uvm.h>
+#include <uvm/uvm_extern.h>
 
 #ifdef DEBUG_MACHO
 #define DPRINTF(a) printf a
diff -r a653d0ee32fb -r e13e236654ef sys/kern/exec_subr.c
--- a/sys/kern/exec_subr.c      Mon Jan 17 07:07:36 2011 +0000
+++ b/sys/kern/exec_subr.c      Mon Jan 17 07:13:31 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exec_subr.c,v 1.66 2010/12/17 22:35:07 yamt Exp $      */
+/*     $NetBSD: exec_subr.c,v 1.67 2011/01/17 07:13:31 uebayasi Exp $  */
 
 /*
  * Copyright (c) 1993, 1994, 1996 Christopher G. Demetriou
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: exec_subr.c,v 1.66 2010/12/17 22:35:07 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: exec_subr.c,v 1.67 2011/01/17 07:13:31 uebayasi Exp $");
 
 #include "opt_pax.h"
 
@@ -50,7 +50,7 @@
 #include <sys/pax.h>
 #endif /* PAX_MPROTECT */
 
-#include <uvm/uvm.h>
+#include <uvm/uvm_extern.h>
 
 #define        VMCMD_EVCNT_DECL(name)                                  \
 static struct evcnt vmcmd_ev_##name =                          \
diff -r a653d0ee32fb -r e13e236654ef sys/kern/init_main.c
--- a/sys/kern/init_main.c      Mon Jan 17 07:07:36 2011 +0000
+++ b/sys/kern/init_main.c      Mon Jan 17 07:13:31 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init_main.c,v 1.424 2010/12/16 00:42:22 eeh Exp $      */
+/*     $NetBSD: init_main.c,v 1.425 2011/01/17 07:13:31 uebayasi Exp $ */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.424 2010/12/16 00:42:22 eeh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.425 2011/01/17 07:13:31 uebayasi Exp $");
 
 #include "opt_ddb.h"
 #include "opt_ipsec.h"
@@ -217,7 +217,7 @@
 
 #include <sys/cpu.h>
 
-#include <uvm/uvm.h>
+#include <uvm/uvm.h>   /* extern struct uvm uvm */
 
 #if NSYSMON_TASKQ > 0
 #include <dev/sysmon/sysmon_taskq.h>
diff -r a653d0ee32fb -r e13e236654ef sys/kern/kern_idle.c
--- a/sys/kern/kern_idle.c      Mon Jan 17 07:07:36 2011 +0000
+++ b/sys/kern/kern_idle.c      Mon Jan 17 07:13:31 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_idle.c,v 1.23 2009/07/19 10:11:55 yamt Exp $      */
+/*     $NetBSD: kern_idle.c,v 1.24 2011/01/17 07:13:31 uebayasi Exp $  */
 
 /*-
  * Copyright (c)2002, 2006, 2007 YAMAMOTO Takashi,
@@ -28,7 +28,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(0, "$NetBSD: kern_idle.c,v 1.23 2009/07/19 10:11:55 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_idle.c,v 1.24 2011/01/17 07:13:31 uebayasi Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -39,7 +39,7 @@
 #include <sys/proc.h>
 #include <sys/atomic.h>
 
-#include <uvm/uvm.h>
+#include <uvm/uvm.h>   /* uvm_pageidlezero */
 #include <uvm/uvm_extern.h>
 
 void
diff -r a653d0ee32fb -r e13e236654ef sys/kern/kern_malloc_debug.c
--- a/sys/kern/kern_malloc_debug.c      Mon Jan 17 07:07:36 2011 +0000
+++ b/sys/kern/kern_malloc_debug.c      Mon Jan 17 07:13:31 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_malloc_debug.c,v 1.23 2010/05/14 05:02:06 cegger Exp $    */
+/*     $NetBSD: kern_malloc_debug.c,v 1.24 2011/01/17 07:13:31 uebayasi Exp $  */
 
 /*
  * Copyright (c) 1999, 2000 Artur Grabowski <art%openbsd.org@localhost>
@@ -56,7 +56,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_malloc_debug.c,v 1.23 2010/05/14 05:02:06 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_malloc_debug.c,v 1.24 2011/01/17 07:13:31 uebayasi Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -65,7 +65,7 @@
 #include <sys/systm.h>
 #include <sys/pool.h>
 
-#include <uvm/uvm.h>
+#include <uvm/uvm_extern.h>
 
 /*
  * debug_malloc_type and debug_malloc_size define the type and size of
diff -r a653d0ee32fb -r e13e236654ef sys/kern/kern_proc.c
--- a/sys/kern/kern_proc.c      Mon Jan 17 07:07:36 2011 +0000
+++ b/sys/kern/kern_proc.c      Mon Jan 17 07:13:31 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_proc.c,v 1.168 2010/07/07 01:30:37 chs Exp $      */
+/*     $NetBSD: kern_proc.c,v 1.169 2011/01/17 07:13:31 uebayasi Exp $ */
 
 /*-
  * Copyright (c) 1999, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_proc.c,v 1.168 2010/07/07 01:30:37 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_proc.c,v 1.169 2011/01/17 07:13:31 uebayasi Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_kstack.h"
@@ -98,7 +98,7 @@
 #include <sys/kmem.h>
 #include <sys/dtrace_bsd.h>
 
-#include <uvm/uvm.h>
+#include <uvm/uvm_extern.h>
 #include <uvm/uvm_extern.h>
 
 /*
diff -r a653d0ee32fb -r e13e236654ef sys/kern/kern_sig.c
--- a/sys/kern/kern_sig.c       Mon Jan 17 07:07:36 2011 +0000
+++ b/sys/kern/kern_sig.c       Mon Jan 17 07:13:31 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_sig.c,v 1.306 2010/07/01 02:38:30 rmind Exp $     */
+/*     $NetBSD: kern_sig.c,v 1.307 2011/01/17 07:13:31 uebayasi Exp $  */
 
 /*-
  * Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v 1.306 2010/07/01 02:38:30 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_sig.c,v 1.307 2011/01/17 07:13:31 uebayasi Exp $");
 
 #include "opt_ptrace.h"
 #include "opt_compat_sunos.h"
@@ -102,7 +102,7 @@
 #include <sys/pax.h>
 #endif /* PAX_SEGVGUARD */
 
-#include <uvm/uvm.h>
+#include <uvm/uvm_extern.h>
 #include <uvm/uvm_extern.h>
 
 static void    ksiginfo_exechook(struct proc *, void *);
diff -r a653d0ee32fb -r e13e236654ef sys/kern/subr_pool.c
--- a/sys/kern/subr_pool.c      Mon Jan 17 07:07:36 2011 +0000
+++ b/sys/kern/subr_pool.c      Mon Jan 17 07:13:31 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_pool.c,v 1.186 2010/06/03 10:40:17 pooka Exp $    */
+/*     $NetBSD: subr_pool.c,v 1.187 2011/01/17 07:13:32 uebayasi Exp $ */
 
 /*-
  * Copyright (c) 1997, 1999, 2000, 2002, 2007, 2008, 2010
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_pool.c,v 1.186 2010/06/03 10:40:17 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_pool.c,v 1.187 2011/01/17 07:13:32 uebayasi Exp $");
 
 #include "opt_ddb.h"
 #include "opt_pool.h"
@@ -54,7 +54,7 @@
 #include <sys/cpu.h>
 #include <sys/atomic.h>
 
-#include <uvm/uvm.h>
+#include <uvm/uvm_extern.h>
 
 /*
  * Pool resource management utility.
diff -r a653d0ee32fb -r e13e236654ef sys/kern/sys_pipe.c
--- a/sys/kern/sys_pipe.c       Mon Jan 17 07:07:36 2011 +0000
+++ b/sys/kern/sys_pipe.c       Mon Jan 17 07:13:31 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sys_pipe.c,v 1.128 2010/08/11 11:46:32 pgoyette Exp $  */
+/*     $NetBSD: sys_pipe.c,v 1.129 2011/01/17 07:13:32 uebayasi Exp $  */
 
 /*-
  * Copyright (c) 2003, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_pipe.c,v 1.128 2010/08/11 11:46:32 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_pipe.c,v 1.129 2011/01/17 07:13:32 uebayasi Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -92,7 +92,7 @@
 #include <sys/atomic.h>
 #include <sys/pipe.h>
 
-#include <uvm/uvm.h>
+#include <uvm/uvm_extern.h>
 
 /*
  * Use this to disable direct I/O and decrease the code size:
diff -r a653d0ee32fb -r e13e236654ef sys/kern/uipc_mbuf.c
--- a/sys/kern/uipc_mbuf.c      Mon Jan 17 07:07:36 2011 +0000
+++ b/sys/kern/uipc_mbuf.c      Mon Jan 17 07:13:31 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_mbuf.c,v 1.138 2010/11/24 14:49:18 cegger Exp $   */
+/*     $NetBSD: uipc_mbuf.c,v 1.139 2011/01/17 07:13:32 uebayasi Exp $ */
 
 /*-
  * Copyright (c) 1999, 2001 The NetBSD Foundation, Inc.
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.138 2010/11/24 14:49:18 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf.c,v 1.139 2011/01/17 07:13:32 uebayasi Exp $");
 
 #include "opt_mbuftrace.h"
 #include "opt_nmbclusters.h"
@@ -87,7 +87,7 @@
 
 #include <net/if.h>
 
-#include <uvm/uvm.h>
+#include <uvm/uvm_extern.h>
 
 pool_cache_t mb_cache; /* mbuf cache */
 pool_cache_t mcl_cache;        /* mbuf cluster cache */
diff -r a653d0ee32fb -r e13e236654ef sys/kern/uipc_socket.c
--- a/sys/kern/uipc_socket.c    Mon Jan 17 07:07:36 2011 +0000
+++ b/sys/kern/uipc_socket.c    Mon Jan 17 07:13:31 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: uipc_socket.c,v 1.201 2010/10/14 03:07:51 oki Exp $    */
+/*     $NetBSD: uipc_socket.c,v 1.202 2011/01/17 07:13:32 uebayasi Exp $       */
 
 /*-
  * Copyright (c) 2002, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.201 2010/10/14 03:07:51 oki Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_socket.c,v 1.202 2011/01/17 07:13:32 uebayasi Exp $");
 
 #include "opt_compat_netbsd.h"
 #include "opt_sock_counters.h"
@@ -98,7 +98,9 @@
 #include <compat/sys/socket.h>
 #endif
 
-#include <uvm/uvm.h>
+#include <uvm/uvm_extern.h>
+#include <uvm/uvm_loan.h>
+#include <uvm/uvm_page.h>
 
 MALLOC_DEFINE(M_SOOPTS, "soopts", "socket options");
 MALLOC_DEFINE(M_SONAME, "soname", "socket name");
diff -r a653d0ee32fb -r e13e236654ef sys/kern/vfs_bio.c



Home | Main Index | Thread Index | Old Index