diff options
author | 2015-02-11 05:54:48 +0000 | |
---|---|---|
committer | 2015-02-11 05:54:48 +0000 | |
commit | f61b589f00810b033900954c08ee23a1b7a75422 (patch) | |
tree | 4aac7581dfcfef2b50f0996acf282040eb1bda36 | |
parent | Use sizeof(u_short) in the first check since there are RT messages that (diff) | |
download | wireguard-openbsd-f61b589f00810b033900954c08ee23a1b7a75422.tar.xz wireguard-openbsd-f61b589f00810b033900954c08ee23a1b7a75422.zip |
deprecate use of sys/lock.h and replace it with sys/atomic.h or
machine/lock.h as appropriate.
-rw-r--r-- | sys/arch/i386/i386/cpu.c | 3 | ||||
-rw-r--r-- | sys/arch/i386/i386/db_mp.c | 5 | ||||
-rw-r--r-- | sys/arch/i386/i386/gdt.c | 3 | ||||
-rw-r--r-- | sys/arch/i386/i386/kvm86.c | 3 | ||||
-rw-r--r-- | sys/arch/i386/i386/lock_machdep.c | 3 | ||||
-rw-r--r-- | sys/arch/i386/i386/pmap.c | 3 | ||||
-rw-r--r-- | sys/arch/i386/isa/npx.c | 3 |
7 files changed, 11 insertions, 12 deletions
diff --git a/sys/arch/i386/i386/cpu.c b/sys/arch/i386/i386/cpu.c index ce8f183aea4..c3ecb157fba 100644 --- a/sys/arch/i386/i386/cpu.c +++ b/sys/arch/i386/i386/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.60 2015/01/27 02:15:30 mlarkin Exp $ */ +/* $OpenBSD: cpu.c,v 1.61 2015/02/11 05:54:48 dlg Exp $ */ /* $NetBSD: cpu.c,v 1.1.2.7 2000/06/26 02:04:05 sommerfeld Exp $ */ /*- @@ -73,6 +73,7 @@ #include <sys/device.h> #include <sys/malloc.h> #include <sys/memrange.h> +#include <sys/atomic.h> #include <uvm/uvm_extern.h> diff --git a/sys/arch/i386/i386/db_mp.c b/sys/arch/i386/i386/db_mp.c index 778bdfbcf7d..151ab829e10 100644 --- a/sys/arch/i386/i386/db_mp.c +++ b/sys/arch/i386/i386/db_mp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_mp.c,v 1.6 2010/04/23 21:34:40 deraadt Exp $ */ +/* $OpenBSD: db_mp.c,v 1.7 2015/02/11 05:54:48 dlg Exp $ */ /* * Copyright (c) 2003, 2004 Andreas Gunnarsson <andreas@openbsd.org> @@ -17,10 +17,9 @@ */ #include <sys/types.h> -#include <sys/lock.h> +#include <sys/mutex.h> #include <machine/db_machdep.h> -#include <sys/mutex.h> #include <ddb/db_output.h> diff --git a/sys/arch/i386/i386/gdt.c b/sys/arch/i386/i386/gdt.c index 48e8cce9ff9..26e35b77d54 100644 --- a/sys/arch/i386/i386/gdt.c +++ b/sys/arch/i386/i386/gdt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gdt.c,v 1.34 2014/11/16 12:30:57 deraadt Exp $ */ +/* $OpenBSD: gdt.c,v 1.35 2015/02/11 05:54:48 dlg Exp $ */ /* $NetBSD: gdt.c,v 1.28 2002/12/14 09:38:50 junyoung Exp $ */ /*- @@ -49,7 +49,6 @@ #include <sys/param.h> #include <sys/systm.h> -#include <sys/lock.h> #include <sys/mutex.h> #include <uvm/uvm_extern.h> diff --git a/sys/arch/i386/i386/kvm86.c b/sys/arch/i386/i386/kvm86.c index 12e5cd40c0d..ae7656f4a44 100644 --- a/sys/arch/i386/i386/kvm86.c +++ b/sys/arch/i386/i386/kvm86.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kvm86.c,v 1.8 2014/11/16 12:30:57 deraadt Exp $ */ +/* $OpenBSD: kvm86.c,v 1.9 2015/02/11 05:54:48 dlg Exp $ */ /* $NetBSD: kvm86.c,v 1.10 2005/12/26 19:23:59 perry Exp $ */ /* * Copyright (c) 2002 @@ -32,7 +32,6 @@ #include <sys/user.h> #include <sys/malloc.h> #include <sys/mutex.h> -#include <sys/lock.h> #include <uvm/uvm_extern.h> diff --git a/sys/arch/i386/i386/lock_machdep.c b/sys/arch/i386/i386/lock_machdep.c index 572b7c88b80..c35270bf850 100644 --- a/sys/arch/i386/i386/lock_machdep.c +++ b/sys/arch/i386/i386/lock_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lock_machdep.c,v 1.16 2014/07/20 02:48:59 guenther Exp $ */ +/* $OpenBSD: lock_machdep.c,v 1.17 2015/02/11 05:54:48 dlg Exp $ */ /* $NetBSD: lock_machdep.c,v 1.1.2.3 2000/05/03 14:40:30 sommerfeld Exp $ */ /*- @@ -36,7 +36,6 @@ */ #include <sys/param.h> -#include <sys/lock.h> #include <sys/systm.h> #include <machine/atomic.h> diff --git a/sys/arch/i386/i386/pmap.c b/sys/arch/i386/i386/pmap.c index 0063d5e9cf3..0b306432b00 100644 --- a/sys/arch/i386/i386/pmap.c +++ b/sys/arch/i386/i386/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.168 2015/02/02 09:29:53 mlarkin Exp $ */ +/* $OpenBSD: pmap.c,v 1.169 2015/02/11 05:54:48 dlg Exp $ */ /* $NetBSD: pmap.c,v 1.91 2000/06/02 17:46:37 thorpej Exp $ */ /* @@ -65,6 +65,7 @@ #include <uvm/uvm.h> #include <machine/atomic.h> +#include <machine/lock.h> #include <machine/cpu.h> #include <machine/specialreg.h> #include <machine/gdt.h> diff --git a/sys/arch/i386/isa/npx.c b/sys/arch/i386/isa/npx.c index 4adcef4827b..2240838cf1d 100644 --- a/sys/arch/i386/isa/npx.c +++ b/sys/arch/i386/isa/npx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: npx.c,v 1.60 2014/03/29 18:09:29 guenther Exp $ */ +/* $OpenBSD: npx.c,v 1.61 2015/02/11 05:54:48 dlg Exp $ */ /* $NetBSD: npx.c,v 1.57 1996/05/12 23:12:24 mycroft Exp $ */ #if 0 @@ -61,6 +61,7 @@ #include <machine/trap.h> #include <machine/specialreg.h> #include <machine/i8259.h> +#include <machine/lock.h> #include <dev/isa/isareg.h> #include <dev/isa/isavar.h> |