bug-hurd
[Top][All Lists]
Advanced

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

[PATCH 14/14] vm/vm_resident.c: move struct definition to a header file


From: Marin Ramesa
Subject: [PATCH 14/14] vm/vm_resident.c: move struct definition to a header file
Date: Mon, 2 Dec 2013 22:54:52 +0100

* vm/vm_resident.c: Include vm/vm_resident.h.
(vm_page_bucket_t): Move struct defintion to vm/vm_resident.h.

---
 vm/vm_resident.c | 5 +----
 vm/vm_resident.h | 5 +++++
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/vm/vm_resident.c b/vm/vm_resident.c
index fbd4275..b164109 100644
--- a/vm/vm_resident.c
+++ b/vm/vm_resident.c
@@ -51,6 +51,7 @@
 #include <vm/vm_page.h>
 #include <vm/vm_pageout.h>
 #include <vm/vm_kern.h>
+#include <vm/vm_resident.h>
 
 #if    MACH_VM_DEBUG
 #include <mach/kern_return.h>
@@ -86,10 +87,6 @@ vm_offset_t virtual_space_end;
  *     [This table is often called the virtual-to-physical,
  *     or VP, table.]
  */
-typedef struct {
-       decl_simple_lock_data(,lock)
-       vm_page_t pages;
-} vm_page_bucket_t;
 
 vm_page_bucket_t *vm_page_buckets;             /* Array of buckets */
 unsigned int   vm_page_bucket_count = 0;       /* How big is array? */
diff --git a/vm/vm_resident.h b/vm/vm_resident.h
index e8bf681..d1a79fc 100644
--- a/vm/vm_resident.h
+++ b/vm/vm_resident.h
@@ -28,6 +28,11 @@
 
 #include <mach/std_types.h>
 
+typedef struct {
+       decl_simple_lock_data(,lock)
+       vm_page_t pages;
+} vm_page_bucket_t;
+
 /*
  *  vm_page_replace:
  *
-- 
1.8.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]