[sheepdog] [PATCH] util: place endif at correct place of list.h
Hitoshi Mitake
mitake.hitoshi at gmail.com
Fri Mar 29 13:30:32 CET 2013
The endif of list.h is placed at an invalid place. This endif doesn't
cause an actual problem, but we should replace it.
Signed-off-by: Hitoshi Mitake <mitake.hitoshi at lab.ntt.co.jp>
---
include/list.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/list.h b/include/list.h
index 9555e3b..469f148 100644
--- a/include/list.h
+++ b/include/list.h
@@ -251,8 +251,6 @@ static inline void hlist_add_after(struct hlist_node *n,
pos && ({ n = pos->next; 1; }) && \
({ tpos = hlist_entry(pos, typeof(*tpos), member); 1; }); \
pos = n)
-#endif
-
#define list_for_each_entry_revert_safe_rcu(pos, n, head, member) \
for (pos = cds_list_entry(rcu_dereference((head)->prev), \
@@ -262,3 +260,5 @@ static inline void hlist_add_after(struct hlist_node *n,
&pos->member != (head); \
pos = n, n = cds_list_entry(rcu_dereference(pos->member.prev),\
typeof(*pos), member))
+
+#endif /* __LIST_H__ */
--
1.7.5.1
More information about the sheepdog
mailing list