Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Nov 2012 05:55:56 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r243132 - in head/sys: amd64/amd64 arm/arm sparc64/sparc64 vm
Message-ID:  <201211160555.qAG5tuYv028033@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Fri Nov 16 05:55:56 2012
New Revision: 243132
URL: http://svnweb.freebsd.org/changeset/base/243132

Log:
  Move the declaration of vm_phys_paddr_to_vm_page() from vm/vm_page.h
  to vm/vm_phys.h, where it belongs.
  
  Requested and reviewed by:	alc
  MFC after:	2 weeks

Modified:
  head/sys/amd64/amd64/minidump_machdep.c
  head/sys/arm/arm/pmap.c
  head/sys/sparc64/sparc64/pmap.c
  head/sys/vm/device_pager.c
  head/sys/vm/sg_pager.c
  head/sys/vm/vm_page.h
  head/sys/vm/vm_phys.h

Modified: head/sys/amd64/amd64/minidump_machdep.c
==============================================================================
--- head/sys/amd64/amd64/minidump_machdep.c	Fri Nov 16 05:49:56 2012	(r243131)
+++ head/sys/amd64/amd64/minidump_machdep.c	Fri Nov 16 05:55:56 2012	(r243132)
@@ -40,6 +40,7 @@ __FBSDID("$FreeBSD$");
 #include <sys/watchdog.h>
 #include <vm/vm.h>
 #include <vm/vm_page.h>
+#include <vm/vm_phys.h>
 #include <vm/pmap.h>
 #include <machine/atomic.h>
 #include <machine/elf.h>

Modified: head/sys/arm/arm/pmap.c
==============================================================================
--- head/sys/arm/arm/pmap.c	Fri Nov 16 05:49:56 2012	(r243131)
+++ head/sys/arm/arm/pmap.c	Fri Nov 16 05:55:56 2012	(r243132)
@@ -165,6 +165,7 @@ __FBSDID("$FreeBSD$");
 #include <vm/vm_map.h>
 #include <vm/vm_page.h>
 #include <vm/vm_pageout.h>
+#include <vm/vm_phys.h>
 #include <vm/vm_extern.h>
 
 #include <machine/md_var.h>

Modified: head/sys/sparc64/sparc64/pmap.c
==============================================================================
--- head/sys/sparc64/sparc64/pmap.c	Fri Nov 16 05:49:56 2012	(r243131)
+++ head/sys/sparc64/sparc64/pmap.c	Fri Nov 16 05:55:56 2012	(r243132)
@@ -83,6 +83,7 @@ __FBSDID("$FreeBSD$");
 #include <vm/vm_extern.h>
 #include <vm/vm_pageout.h>
 #include <vm/vm_pager.h>
+#include <vm/vm_phys.h>
 
 #include <machine/cache.h>
 #include <machine/frame.h>

Modified: head/sys/vm/device_pager.c
==============================================================================
--- head/sys/vm/device_pager.c	Fri Nov 16 05:49:56 2012	(r243131)
+++ head/sys/vm/device_pager.c	Fri Nov 16 05:55:56 2012	(r243132)
@@ -51,6 +51,7 @@ __FBSDID("$FreeBSD$");
 #include <vm/vm_object.h>
 #include <vm/vm_page.h>
 #include <vm/vm_pager.h>
+#include <vm/vm_phys.h>
 #include <vm/uma.h>
 
 static void dev_pager_init(void);

Modified: head/sys/vm/sg_pager.c
==============================================================================
--- head/sys/vm/sg_pager.c	Fri Nov 16 05:49:56 2012	(r243131)
+++ head/sys/vm/sg_pager.c	Fri Nov 16 05:55:56 2012	(r243132)
@@ -42,6 +42,7 @@ __FBSDID("$FreeBSD$");
 #include <vm/vm_object.h>
 #include <vm/vm_page.h>
 #include <vm/vm_pager.h>
+#include <vm/vm_phys.h>
 #include <vm/uma.h>
 
 static vm_object_t sg_pager_alloc(void *, vm_ooffset_t, vm_prot_t,

Modified: head/sys/vm/vm_page.h
==============================================================================
--- head/sys/vm/vm_page.h	Fri Nov 16 05:49:56 2012	(r243131)
+++ head/sys/vm/vm_page.h	Fri Nov 16 05:55:56 2012	(r243132)
@@ -324,8 +324,6 @@ extern long first_page;			/* first physi
 
 #define VM_PAGE_TO_PHYS(entry)	((entry)->phys_addr)
 
-vm_page_t vm_phys_paddr_to_vm_page(vm_paddr_t pa);
-
 vm_page_t PHYS_TO_VM_PAGE(vm_paddr_t pa);
 
 /* page allocation classes: */

Modified: head/sys/vm/vm_phys.h
==============================================================================
--- head/sys/vm/vm_phys.h	Fri Nov 16 05:49:56 2012	(r243131)
+++ head/sys/vm/vm_phys.h	Fri Nov 16 05:55:56 2012	(r243132)
@@ -64,6 +64,7 @@ vm_page_t vm_phys_fictitious_to_vm_page(
 void vm_phys_free_contig(vm_page_t m, u_long npages);
 void vm_phys_free_pages(vm_page_t m, int order);
 void vm_phys_init(void);
+vm_page_t vm_phys_paddr_to_vm_page(vm_paddr_t pa);
 void vm_phys_set_pool(int pool, vm_page_t m, int order);
 boolean_t vm_phys_unfree_page(vm_page_t m);
 boolean_t vm_phys_zero_pages_idle(void);



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