From: Ben Pfaff Date: Sun, 29 Mar 2015 22:49:29 +0000 (-0700) Subject: hmap: Don't include ovs-atomic.h unnecessarily. X-Git-Tag: v2.4.0~398 X-Git-Url: http://git.cascardo.eti.br/?a=commitdiff_plain;ds=sidebyside;h=5617ae6abe492498ee6350fe657a53e0ba21f8ba;p=cascardo%2Fovs.git hmap: Don't include ovs-atomic.h unnecessarily. 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 Signed-off-by: Ben Pfaff Acked-by: Jarno Rajahalme --- diff --git a/lib/cfm.c b/lib/cfm.c index 380c5b06f..6a507a17d 100644 --- 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" diff --git a/lib/hmap.h b/lib/hmap.h index 85241f0e8..dc1e85ca5 100644 --- a/lib/hmap.h +++ b/lib/hmap.h @@ -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 #include -#include "ovs-atomic.h" #include "util.h" #ifdef __cplusplus diff --git a/lib/lacp.c b/lib/lacp.c index 6535e6dfe..65149fdb3 100644 --- a/lib/lacp.c +++ b/lib/lacp.c @@ -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" diff --git a/lib/netdev-dummy.c b/lib/netdev-dummy.c index 7fb103e6c..24c91c203 100644 --- a/lib/netdev-dummy.c +++ b/lib/netdev-dummy.c @@ -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" diff --git a/lib/ovs-lldp.h b/lib/ovs-lldp.h index 825096ba3..66288a577 100644 --- a/lib/ovs-lldp.h +++ b/lib/ovs-lldp.h @@ -24,6 +24,7 @@ #include "hmap.h" #include "list.h" #include "lldp/lldpd.h" +#include "ovs-atomic.h" #include "packets.h" #include "timer.h"