list.h: Define OVS_LIST_POISON statically
authorNithin Raju <nithin@vmware.com>
Fri, 27 May 2016 17:54:58 +0000 (10:54 -0700)
committerBen Pfaff <blp@ovn.org>
Sat, 28 May 2016 16:49:03 +0000 (09:49 -0700)
Looks like part of the patch committed in e32c1f7c
got left out while moving header files.

Fixes: e32c1f7c0d65 ("list.h: Define OVS_LIST_POISON statically")
Signed-off-by: Nithin Raju <nithin@vmware.com>
Reported-by: Joe Stringer <joe@ovn.org>
Signed-off-by: Ben Pfaff <blp@ovn.org>
include/openvswitch/list.h

index 32f83a0..5c2cca4 100644 (file)
@@ -39,9 +39,6 @@ struct ovs_list {
 static const struct ovs_list OVS_LIST_POISON =
     { (struct ovs_list *) (UINTPTR_MAX / 0xf * 0xc),
       (struct ovs_list *) (UINTPTR_MAX / 0xf * 0xc) };
-#define OVS_LIST_POISON \
-(struct ovs_list) { (struct ovs_list *) (uintptr_t) 0xccccccccccccccccULL, \
-                    (struct ovs_list *) (uintptr_t) 0xccccccccccccccccULL }
 
 static inline void ovs_list_init(struct ovs_list *);
 static inline void ovs_list_poison(struct ovs_list *);