Source-Changes-HG archive

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

[src/trunk]: src/sys/arch forward declare struct vm_page, and include uvm_pro...



details:   https://anonhg.NetBSD.org/src/rev/94394ce5ef46
branches:  trunk
changeset: 938309:94394ce5ef46
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Sep 06 10:48:21 2020 +0000

description:
forward declare struct vm_page, and include uvm_prot.h and uvm_pmap.h.

fixes build, presumeably after uvm.h external rototill.

diffstat:

 sys/arch/sparc/include/pmap.h   |  7 ++++++-
 sys/arch/sparc64/include/pmap.h |  5 ++++-
 2 files changed, 10 insertions(+), 2 deletions(-)

diffs (40 lines):

diff -r f17a4c706ca1 -r 94394ce5ef46 sys/arch/sparc/include/pmap.h
--- a/sys/arch/sparc/include/pmap.h     Sun Sep 06 08:18:21 2020 +0000
+++ b/sys/arch/sparc/include/pmap.h     Sun Sep 06 10:48:21 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.h,v 1.93 2020/03/14 14:05:43 ad Exp $ */
+/*     $NetBSD: pmap.h,v 1.94 2020/09/06 10:48:21 mrg Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -50,6 +50,11 @@
 #include "opt_sparc_arch.h"
 #endif
 
+struct vm_page;
+
+#include <uvm/uvm_prot.h>
+#include <uvm/uvm_pmap.h>
+
 #include <sparc/pte.h>
 
 /*
diff -r f17a4c706ca1 -r 94394ce5ef46 sys/arch/sparc64/include/pmap.h
--- a/sys/arch/sparc64/include/pmap.h   Sun Sep 06 08:18:21 2020 +0000
+++ b/sys/arch/sparc64/include/pmap.h   Sun Sep 06 10:48:21 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.h,v 1.63 2019/12/15 21:11:34 ad Exp $     */
+/*     $NetBSD: pmap.h,v 1.64 2020/09/06 10:48:21 mrg Exp $    */
 
 /*-
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -37,6 +37,9 @@
 #ifndef _LOCORE
 #include <machine/pte.h>
 #include <sys/queue.h>
+struct vm_page;
+#include <uvm/uvm_prot.h>
+#include <uvm/uvm_pmap.h>
 #include <uvm/uvm_object.h>
 #ifdef _KERNEL
 #include <machine/cpuset.h>



Home | Main Index | Thread Index | Old Index