[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <29932.1340380929@redhat.com>
Date: Fri, 22 Jun 2012 17:02:09 +0100
From: David Howells <dhowells@...hat.com>
To: "Paul E. McKenney" <paulmck@...ux.vnet.ibm.com>
Cc: dhowells@...hat.com, linux-kernel@...r.kernel.org, mingo@...e.hu,
laijs@...fujitsu.com, dipankar@...ibm.com,
akpm@...ux-foundation.org, mathieu.desnoyers@...ymtl.ca,
josh@...htriplett.org, niv@...ibm.com, tglx@...utronix.de,
peterz@...radead.org, rostedt@...dmis.org, Valdis.Kletnieks@...edu,
eric.dumazet@...il.com, darren@...art.com, fweisbec@...il.com,
sbw@....edu, patches@...aro.org
Subject: Re: [PATCH tip/core/rcu 04/17] rcu: Add a gcc-style structure initializer for RCU pointers
Paul E. McKenney <paulmck@...ux.vnet.ibm.com> wrote:
> RCU_INIT_POINTER() returns a value that is never used, and which should
> be abolished due to terminal ugliness:
>
> q = RCU_INIT_POINTER(global_p, p);
>
> However, there are two uses that cannot be handled by a do-while
> formulation because they do gcc-style initialization:
>
> RCU_INIT_POINTER(.real_cred, &init_cred),
> RCU_INIT_POINTER(.cred, &init_cred),
>
> This usage is clever, but not necessarily the nicest approach.
> This commit therefore creates an RCU_POINTER_INITIALIZER() macro that
> is specifically designed for gcc-style initialization.
>
> Signed-off-by: Paul E. McKenney <paulmck@...ux.vnet.ibm.com>
Acked-by: David Howells <dhowells@...hat.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists