]> git.proxmox.com Git - mirror_ovs.git/commitdiff
hmap: Don't include ovs-atomic.h unnecessarily.
authorBen Pfaff <blp@nicira.com>
Sun, 29 Mar 2015 22:49:29 +0000 (15:49 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 31 Mar 2015 23:13:56 +0000 (16:13 -0700)
GNU C++ isn't too happy with ovs-atomic.h.  We could fix that (maybe we
should) but the report I received from a C++ user implied to me that it
would be just as useful to just drop the unnecessary #include
"ovs-atomic.h" from hmap.h.

Reported-by: Michael Hu <humichael@vmware.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
lib/cfm.c
lib/hmap.h
lib/lacp.c
lib/netdev-dummy.c
lib/ovs-lldp.h

index 380c5b06f80313ee98a35d5a2abfb087f70d54d8..6a507a17dbbd598ccc1c7029db69aed895c7ba01 100644 (file)
--- a/lib/cfm.c
+++ b/lib/cfm.c
@@ -29,6 +29,7 @@
 #include "hash.h"
 #include "hmap.h"
 #include "netdev.h"
+#include "ovs-atomic.h"
 #include "packets.h"
 #include "poll-loop.h"
 #include "random.h"
index 85241f0e89109a50c041b4526a7e9edac0a0d698..dc1e85ca58a1e4926d09425b285130e8506773ec 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008, 2009, 2010, 2012, 2013 Nicira, Inc.
+ * Copyright (c) 2008, 2009, 2010, 2012, 2013, 2015 Nicira, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -19,7 +19,6 @@
 
 #include <stdbool.h>
 #include <stdlib.h>
-#include "ovs-atomic.h"
 #include "util.h"
 
 #ifdef  __cplusplus
index 6535e6dfe24f880432eff27830ab086a7950c248..65149fdb3cf5bc9c5ca9ccce8567dcc09f78afc0 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2011, 2012, 2013, 2014 Nicira, Inc.
+/* Copyright (c) 2011, 2012, 2013, 2014, 2015 Nicira, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -23,6 +23,7 @@
 #include "hash.h"
 #include "hmap.h"
 #include "dp-packet.h"
+#include "ovs-atomic.h"
 #include "packets.h"
 #include "poll-loop.h"
 #include "seq.h"
index 7fb103e6cb2b7896fcbf074537d2b8373f79a571..24c91c20351d6917f167db30e0c34f1794507780 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2010, 2011, 2012, 2013 Nicira, Inc.
+ * Copyright (c) 2010, 2011, 2012, 2013, 2015 Nicira, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -30,6 +30,7 @@
 #include "odp-util.h"
 #include "ofp-print.h"
 #include "ofpbuf.h"
+#include "ovs-atomic.h"
 #include "packets.h"
 #include "pcap-file.h"
 #include "poll-loop.h"
index 825096ba3fb2ad6e8884729cef8849c12477de22..66288a5773226b48f643d5cc1d293d8cb3976238 100644 (file)
@@ -24,6 +24,7 @@
 #include "hmap.h"
 #include "list.h"
 #include "lldp/lldpd.h"
+#include "ovs-atomic.h"
 #include "packets.h"
 #include "timer.h"