Module Name:    src
Committed By:   tsutsui
Date:           Sat Feb  1 06:17:12 UTC 2020

Modified Files:
        src/sys/arch/m68k/include: pmap_motorola.h
        src/sys/arch/sun2/include: pmap.h
        src/sys/arch/sun3/include: pmap.h

Log Message:
Use "__nothing" macro defined in <sys/cdefs.h> for empty pmap_update().

Suggested by pgoyette@ in PR/54869.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/sys/arch/m68k/include/pmap_motorola.h
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/sun2/include/pmap.h
cvs rdiff -u -r1.33 -r1.34 src/sys/arch/sun3/include/pmap.h

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

Modified files:

Index: src/sys/arch/m68k/include/pmap_motorola.h
diff -u src/sys/arch/m68k/include/pmap_motorola.h:1.34 src/sys/arch/m68k/include/pmap_motorola.h:1.35
--- src/sys/arch/m68k/include/pmap_motorola.h:1.34	Sat Oct 29 18:26:19 2011
+++ src/sys/arch/m68k/include/pmap_motorola.h	Sat Feb  1 06:17:11 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap_motorola.h,v 1.34 2011/10/29 18:26:19 tsutsui Exp $	*/
+/*	$NetBSD: pmap_motorola.h,v 1.35 2020/02/01 06:17:11 tsutsui Exp $	*/
 
 /* 
  * Copyright (c) 1991, 1993
@@ -202,7 +202,7 @@ extern struct pv_header	*pv_table;	/* ar
 #define	pmap_resident_count(pmap)	((pmap)->pm_stats.resident_count)
 #define	pmap_wired_count(pmap)		((pmap)->pm_stats.wired_count)
 
-#define	pmap_update(pmap)		/* nothing (yet) */
+#define	pmap_update(pmap)		__nothing	/* nothing (yet) */
 
 static __inline void
 pmap_remove_all(struct pmap *pmap)

Index: src/sys/arch/sun2/include/pmap.h
diff -u src/sys/arch/sun2/include/pmap.h:1.26 src/sys/arch/sun2/include/pmap.h:1.27
--- src/sys/arch/sun2/include/pmap.h:1.26	Wed Jan  9 08:11:09 2013
+++ src/sys/arch/sun2/include/pmap.h	Sat Feb  1 06:17:11 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap.h,v 1.26 2013/01/09 08:11:09 he Exp $	*/
+/*	$NetBSD: pmap.h,v 1.27 2020/02/01 06:17:11 tsutsui Exp $	*/
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -64,7 +64,7 @@ extern segsz_t pmap_wired_pages(pmap_t);
 /* We use the PA plus some low bits for device mmap. */
 #define pmap_phys_address(addr) 	(addr)
 
-#define	pmap_update(pmap)		/* nothing (yet) */
+#define	pmap_update(pmap)		__nothing	/* nothing (yet) */
 
 /* Map a given physical region to a virtual region */
 extern vaddr_t pmap_map(vaddr_t, paddr_t, paddr_t, int);

Index: src/sys/arch/sun3/include/pmap.h
diff -u src/sys/arch/sun3/include/pmap.h:1.33 src/sys/arch/sun3/include/pmap.h:1.34
--- src/sys/arch/sun3/include/pmap.h:1.33	Sat Jan 18 20:47:15 2020
+++ src/sys/arch/sun3/include/pmap.h	Sat Feb  1 06:17:12 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: pmap.h,v 1.33 2020/01/18 20:47:15 tsutsui Exp $	*/
+/*	$NetBSD: pmap.h,v 1.34 2020/02/01 06:17:12 tsutsui Exp $	*/
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
  * Some pmap(9) API macros should be defined here for module(7)
  * because they are common between sun3 and sun3x. (see PR/54869)
  */
-#define	pmap_update(pmap)		/* nothing (yet) */
+#define	pmap_update(pmap)		__nothing	/* nothing (yet) */
 
 void pmap_procwr(struct proc *, vaddr_t, size_t);
 #endif

Reply via email to