mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Trivial C99 change to rcupdate.h
@ 2003-12-31 15:06 Art Haas
  0 siblings, 0 replies; only message in thread
From: Art Haas @ 2003-12-31 15:06 UTC (permalink / raw)
  To: linux-kernel; +Cc: Linus Torvalds

Hi.

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

Art Haas

===== include/linux/rcupdate.h 1.4 vs edited =====
--- 1.4/include/linux/rcupdate.h	Thu Oct  2 02:12:13 2003
+++ edited/include/linux/rcupdate.h	Tue Dec 30 19:54:24 2003
@@ -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; \
-- 
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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-12-31 15:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-31 15:06 [PATCH] Trivial C99 change to rcupdate.h Art Haas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome