b_saveaddr has a type of void * use NULL not 0
authorjsg <jsg@openbsd.org>
Sun, 16 May 2021 06:20:28 +0000 (06:20 +0000)
committerjsg <jsg@openbsd.org>
Sun, 16 May 2021 06:20:28 +0000 (06:20 +0000)
sys/arch/amd64/amd64/vm_machdep.c
sys/arch/arm/arm/vm_machdep.c
sys/arch/arm64/arm64/vm_machdep.c
sys/arch/i386/i386/vm_machdep.c
sys/arch/m88k/m88k/vm_machdep.c
sys/arch/powerpc/powerpc/vm_machdep.c
sys/arch/powerpc64/powerpc64/vm_machdep.c
sys/arch/riscv64/riscv64/vm_machdep.c
sys/arch/sh/sh/vm_machdep.c

index cbdb7c7..39bf02b 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: vm_machdep.c,v 1.43 2018/08/21 13:10:13 bluhm Exp $   */
+/*     $OpenBSD: vm_machdep.c,v 1.44 2021/05/16 06:20:28 jsg Exp $     */
 /*     $NetBSD: vm_machdep.c,v 1.1 2003/04/26 18:39:33 fvdl Exp $      */
 
 /*-
@@ -197,7 +197,7 @@ vunmapbuf(struct buf *bp, vsize_t len)
        pmap_update(pmap_kernel());
        uvm_km_free_wakeup(phys_map, addr, len);
        bp->b_data = bp->b_saveaddr;
-       bp->b_saveaddr = 0;
+       bp->b_saveaddr = NULL;
 }
 
 void *
index d55b089..7ae6436 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: vm_machdep.c,v 1.26 2021/03/25 04:12:00 jsg Exp $     */
+/*     $OpenBSD: vm_machdep.c,v 1.27 2021/05/16 06:20:28 jsg Exp $     */
 /*     $NetBSD: vm_machdep.c,v 1.31 2004/01/04 11:33:29 jdolecek Exp $ */
 
 /*
@@ -196,5 +196,5 @@ vunmapbuf(struct buf *bp, vsize_t len)
        pmap_update(pmap_kernel());
        uvm_km_free_wakeup(phys_map, addr, len);
        bp->b_data = bp->b_saveaddr;
-       bp->b_saveaddr = 0;
+       bp->b_saveaddr = NULL;
 }
index 93d3655..1a55d62 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: vm_machdep.c,v 1.7 2021/03/03 21:47:27 kettenis Exp $ */
+/*     $OpenBSD: vm_machdep.c,v 1.8 2021/05/16 06:20:29 jsg Exp $      */
 /*     $NetBSD: vm_machdep.c,v 1.1 2003/04/26 18:39:33 fvdl Exp $      */
 
 /*-
@@ -180,5 +180,5 @@ vunmapbuf(struct buf *bp, vsize_t len)
        pmap_update(pmap_kernel());
        km_free((void *)addr, len, &kv_physwait, &kp_none);
        bp->b_data = bp->b_saveaddr;
-       bp->b_saveaddr = 0;
+       bp->b_saveaddr = NULL;
 }
index c66d60d..e48e1ba 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: vm_machdep.c,v 1.70 2018/03/31 13:45:03 bluhm Exp $   */
+/*     $OpenBSD: vm_machdep.c,v 1.71 2021/05/16 06:20:29 jsg Exp $     */
 /*     $NetBSD: vm_machdep.c,v 1.61 1996/05/03 19:42:35 christos Exp $ */
 
 /*-
@@ -197,5 +197,5 @@ vunmapbuf(struct buf *bp, vsize_t len)
        pmap_update(pmap_kernel());
        uvm_km_free_wakeup(phys_map, addr, len);
        bp->b_data = bp->b_saveaddr;
-       bp->b_saveaddr = 0;
+       bp->b_saveaddr = NULL;
 }
index c247482..5b03eb4 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: vm_machdep.c,v 1.25 2017/02/12 04:55:08 guenther Exp $        */
+/*     $OpenBSD: vm_machdep.c,v 1.26 2021/05/16 06:20:29 jsg Exp $     */
 
 /*
  * Copyright (c) 1998 Steve Murphree, Jr.
@@ -187,5 +187,5 @@ vunmapbuf(bp, len)
        pmap_update(vm_map_pmap(phys_map));
        uvm_km_free_wakeup(phys_map, addr, len);
        bp->b_data = bp->b_saveaddr;
-       bp->b_saveaddr = 0;
+       bp->b_saveaddr = NULL;
 }
index 3f6d41a..f542cf6 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: vm_machdep.c,v 1.51 2021/03/11 11:16:59 jsg Exp $     */
+/*     $OpenBSD: vm_machdep.c,v 1.52 2021/05/16 06:20:29 jsg Exp $     */
 /*     $NetBSD: vm_machdep.c,v 1.1 1996/09/30 16:34:57 ws Exp $        */
 
 /*
@@ -210,5 +210,5 @@ vunmapbuf(struct buf *bp, vsize_t len)
        pmap_update(vm_map_pmap(phys_map));
        uvm_km_free_wakeup(phys_map, addr, len);
        bp->b_data = bp->b_saveaddr;
-       bp->b_saveaddr = 0;
+       bp->b_saveaddr = NULL;
 }
index 51e6daa..42a29ab 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: vm_machdep.c,v 1.7 2021/01/09 13:14:02 kettenis Exp $ */
+/*     $OpenBSD: vm_machdep.c,v 1.8 2021/05/16 06:20:29 jsg Exp $      */
 
 /*-
  * Copyright (c) 1995 Charles M. Hannum.  All rights reserved.
@@ -189,5 +189,5 @@ vunmapbuf(struct buf *bp, vsize_t len)
        pmap_update(pmap_kernel());
        km_free((void *)addr, len, &kv_physwait, &kp_none);
        bp->b_data = bp->b_saveaddr;
-       bp->b_saveaddr = 0;
+       bp->b_saveaddr = NULL;
 }
index da05bd9..043530b 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: vm_machdep.c,v 1.4 2021/05/14 06:48:52 jsg Exp $      */
+/*     $OpenBSD: vm_machdep.c,v 1.5 2021/05/16 06:20:29 jsg Exp $      */
 
 /*-
  * Copyright (c) 1995 Charles M. Hannum.  All rights reserved.
@@ -176,5 +176,5 @@ vunmapbuf(struct buf *bp, vsize_t len)
        pmap_update(pmap_kernel());
        km_free((void *)addr, len, &kv_physwait, &kp_none);
        bp->b_data = bp->b_saveaddr;
-       bp->b_saveaddr = 0;
+       bp->b_saveaddr = NULL;
 }
index 32c0109..8ea9cdd 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: vm_machdep.c,v 1.15 2017/08/17 20:50:51 tom Exp $     */
+/*     $OpenBSD: vm_machdep.c,v 1.16 2021/05/16 06:20:29 jsg Exp $     */
 /*     $NetBSD: vm_machdep.c,v 1.53 2006/08/31 16:49:21 matt Exp $     */
 
 /*
@@ -309,5 +309,5 @@ vunmapbuf(struct buf *bp, vsize_t len)
        pmap_update(kpmap);
        uvm_km_free_wakeup(phys_map, addr, len);
        bp->b_data = bp->b_saveaddr;
-       bp->b_saveaddr = 0;
+       bp->b_saveaddr = NULL;
 }