Skip to contentSkip to conversation

Trivial C99 change to rcupdate.h

PATCH New Art Haas 1 participant 1 message Dec 31, 2003 RCU

lore
Share & tools
lore

Art Haas

author
#0 lore raw

PATCH 1/1 Trivial C99 change to rcupdate.h

Hi.

Here's a trivial patch that replaces the GNU initializers with C99 initializers.

Art Haas

===== include/linux/rcupdate.h 1.4 vs edited =====

include/linux/rcupdate.h +1 -1
@@ -55,7 +55,7 @@
 };
 
 #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 INIT_RCU_HEAD(ptr) do { \
        INIT_LIST_HEAD(&(ptr)->list); (ptr)->func = NULL; (ptr)->arg = NULL; \
Signature · 4 lines
Man once surrendering his reason, has no remaining guard against absurdities
the most monstrous, and like a ship without rudder, is the sport of every wind.

-Thomas Jefferson to James Smith, 1822