From: jsg Date: Sun, 16 May 2021 06:20:28 +0000 (+0000) Subject: b_saveaddr has a type of void * use NULL not 0 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8d2914c27fb2bc70d9af3163056ce3dbafb62a87;p=openbsd b_saveaddr has a type of void * use NULL not 0 --- diff --git a/sys/arch/amd64/amd64/vm_machdep.c b/sys/arch/amd64/amd64/vm_machdep.c index cbdb7c7e1f7..39bf02bdc5c 100644 --- a/sys/arch/amd64/amd64/vm_machdep.c +++ b/sys/arch/amd64/amd64/vm_machdep.c @@ -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 * diff --git a/sys/arch/arm/arm/vm_machdep.c b/sys/arch/arm/arm/vm_machdep.c index d55b08927d6..7ae64366c3c 100644 --- a/sys/arch/arm/arm/vm_machdep.c +++ b/sys/arch/arm/arm/vm_machdep.c @@ -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; } diff --git a/sys/arch/arm64/arm64/vm_machdep.c b/sys/arch/arm64/arm64/vm_machdep.c index 93d36559e1d..1a55d621606 100644 --- a/sys/arch/arm64/arm64/vm_machdep.c +++ b/sys/arch/arm64/arm64/vm_machdep.c @@ -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; } diff --git a/sys/arch/i386/i386/vm_machdep.c b/sys/arch/i386/i386/vm_machdep.c index c66d60ded6a..e48e1ba9015 100644 --- a/sys/arch/i386/i386/vm_machdep.c +++ b/sys/arch/i386/i386/vm_machdep.c @@ -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; } diff --git a/sys/arch/m88k/m88k/vm_machdep.c b/sys/arch/m88k/m88k/vm_machdep.c index c247482c54f..5b03eb42d4e 100644 --- a/sys/arch/m88k/m88k/vm_machdep.c +++ b/sys/arch/m88k/m88k/vm_machdep.c @@ -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; } diff --git a/sys/arch/powerpc/powerpc/vm_machdep.c b/sys/arch/powerpc/powerpc/vm_machdep.c index 3f6d41ae395..f542cf60a93 100644 --- a/sys/arch/powerpc/powerpc/vm_machdep.c +++ b/sys/arch/powerpc/powerpc/vm_machdep.c @@ -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; } diff --git a/sys/arch/powerpc64/powerpc64/vm_machdep.c b/sys/arch/powerpc64/powerpc64/vm_machdep.c index 51e6daaf2d0..42a29ab55f8 100644 --- a/sys/arch/powerpc64/powerpc64/vm_machdep.c +++ b/sys/arch/powerpc64/powerpc64/vm_machdep.c @@ -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; } diff --git a/sys/arch/riscv64/riscv64/vm_machdep.c b/sys/arch/riscv64/riscv64/vm_machdep.c index da05bd9c93b..043530bb7fb 100644 --- a/sys/arch/riscv64/riscv64/vm_machdep.c +++ b/sys/arch/riscv64/riscv64/vm_machdep.c @@ -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; } diff --git a/sys/arch/sh/sh/vm_machdep.c b/sys/arch/sh/sh/vm_machdep.c index 32c01097225..8ea9cddb489 100644 --- a/sys/arch/sh/sh/vm_machdep.c +++ b/sys/arch/sh/sh/vm_machdep.c @@ -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; }