summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-11-23 10:52:44 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-11-23 10:52:44 +0000
commit90ffe301366d97266117c7713a9e2a30bf493161 (patch)
tree3f0806cd137be0913961e1da8d97faf67b0228e4
parentc2a21f8a9400a1389362d02e8aa5c242934974b7 (diff)
Include <sys/atomic.h> when atomic operations are used.
This has been masked because <sys/srp.h> is pulled unconditionally. ok dlg@
-rw-r--r--sys/dev/pci/if_bge.c3
-rw-r--r--sys/dev/pci/if_vmx.c3
-rw-r--r--sys/net/route.c3
3 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c
index 7a2ef165601..685282c6326 100644
--- a/sys/dev/pci/if_bge.c
+++ b/sys/dev/pci/if_bge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bge.c,v 1.376 2015/11/17 12:30:42 jmatthew Exp $ */
+/* $OpenBSD: if_bge.c,v 1.377 2015/11/23 10:52:43 mpi Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@@ -84,6 +84,7 @@
#include <sys/device.h>
#include <sys/timeout.h>
#include <sys/socket.h>
+#include <sys/atomic.h>
#include <net/if.h>
#include <net/if_dl.h>
diff --git a/sys/dev/pci/if_vmx.c b/sys/dev/pci/if_vmx.c
index 0a951a130d8..d0b78603ad4 100644
--- a/sys/dev/pci/if_vmx.c
+++ b/sys/dev/pci/if_vmx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vmx.c,v 1.35 2015/11/14 17:54:57 mpi Exp $ */
+/* $OpenBSD: if_vmx.c,v 1.36 2015/11/23 10:52:43 mpi Exp $ */
/*
* Copyright (c) 2013 Tsubai Masanari
@@ -25,6 +25,7 @@
#include <sys/socket.h>
#include <sys/sockio.h>
#include <sys/systm.h>
+#include <sys/atomic.h>
#include <net/bpf.h>
#include <net/if.h>
diff --git a/sys/net/route.c b/sys/net/route.c
index abb00b7bc4f..535b8e59367 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.275 2015/11/20 13:12:14 jsg Exp $ */
+/* $OpenBSD: route.c,v 1.276 2015/11/23 10:52:43 mpi Exp $ */
/* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */
/*
@@ -113,6 +113,7 @@
#include <sys/kernel.h>
#include <sys/queue.h>
#include <sys/pool.h>
+#include <sys/atomic.h>
#include <net/if.h>
#include <net/if_var.h>