Module Name:    src
Committed By:   riastradh
Date:           Sun Aug 21 22:28:26 UTC 2022

Modified Files:
        src/sys/rump/librump/rumpkern/arch/generic: rump_generic_pmap.c

Log Message:
rump: Define pmap_resident_count, pmap_wired_count conditionally.

These definitions will not be used by anything yet because on every
architecture except x86 as of yeterday, pmap_resident_count and
pmap_wired_count are defined as macros anyway.  But if more struct
pmaps are made private these definitions will get used.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 \
    src/sys/rump/librump/rumpkern/arch/generic/rump_generic_pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/librump/rumpkern/arch/generic/rump_generic_pmap.c
diff -u src/sys/rump/librump/rumpkern/arch/generic/rump_generic_pmap.c:1.6 src/sys/rump/librump/rumpkern/arch/generic/rump_generic_pmap.c:1.7
--- src/sys/rump/librump/rumpkern/arch/generic/rump_generic_pmap.c:1.6	Sun Aug 21 16:55:14 2022
+++ src/sys/rump/librump/rumpkern/arch/generic/rump_generic_pmap.c	Sun Aug 21 22:28:26 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: rump_generic_pmap.c,v 1.6 2022/08/21 16:55:14 mlelstv Exp $	*/
+/*	$NetBSD: rump_generic_pmap.c,v 1.7 2022/08/21 22:28:26 riastradh Exp $	*/
 
 /*
  * Copyright (c) 2010 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump_generic_pmap.c,v 1.6 2022/08/21 16:55:14 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump_generic_pmap.c,v 1.7 2022/08/21 22:28:26 riastradh Exp $");
 
 #include <sys/param.h>
 
@@ -89,16 +89,20 @@ pmap_clear_modify(struct vm_page *pg)
 	return false;
 }
 
+#ifndef pmap_resident_count
 long
 pmap_resident_count(struct pmap *pmap)
 
 {
 	return 0;
 }
+#endif
 
+#ifndef pmap_wired_count
 long
 pmap_wired_count(struct pmap *pmap)
 {
 
 	return 0;
 }
+#endif

Reply via email to