Commit 0bfab7ea authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] C99 change to rcupdate.h

From: "Art Haas" <ahaas@airmail.net>

Replace the GNU initializers with C99 initializers.
parent ac987996
...@@ -55,7 +55,7 @@ struct rcu_head { ...@@ -55,7 +55,7 @@ struct rcu_head {
}; };
#define RCU_HEAD_INIT(head) \ #define RCU_HEAD_INIT(head) \
{ list: LIST_HEAD_INIT(head.list), func: NULL, arg: NULL } { .list = LIST_HEAD_INIT(head.list), .func = NULL, .arg = NULL }
#define RCU_HEAD(head) struct rcu_head head = RCU_HEAD_INIT(head) #define RCU_HEAD(head) struct rcu_head head = RCU_HEAD_INIT(head)
#define INIT_RCU_HEAD(ptr) do { \ #define INIT_RCU_HEAD(ptr) do { \
INIT_LIST_HEAD(&(ptr)->list); (ptr)->func = NULL; (ptr)->arg = NULL; \ INIT_LIST_HEAD(&(ptr)->list); (ptr)->func = NULL; (ptr)->arg = NULL; \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment