Re: [PATCH 0/6] files: fix rcu initializers

From: Dipankar Sarma
Date: Tue Jun 14 2005 - 09:32:51 EST




RCU head initilizer no longer needs the head varible name since
we don't use list.h lists anymore.

Signed-off-by : Dipankar Sarma <dipankar@xxxxxxxxxx>


include/linux/rcupdate.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff -puN include/linux/rcupdate.h~fix-rcu-initializer include/linux/rcupdate.h
--- linux-2.6.12-rc6-fd/include/linux/rcupdate.h~fix-rcu-initializer 2005-06-14 14:05:02.000000000 +0530
+++ linux-2.6.12-rc6-fd-dipankar/include/linux/rcupdate.h 2005-06-14 14:05:02.000000000 +0530
@@ -52,8 +52,8 @@ struct rcu_head {
void (*func)(struct rcu_head *head);
};

-#define RCU_HEAD_INIT(head) { .next = NULL, .func = NULL }
-#define RCU_HEAD(head) struct rcu_head head = RCU_HEAD_INIT(head)
+#define RCU_HEAD_INIT { .next = NULL, .func = NULL }
+#define RCU_HEAD(head) struct rcu_head head = RCU_HEAD_INIT
#define INIT_RCU_HEAD(ptr) do { \
(ptr)->next = NULL; (ptr)->func = NULL; \
} while (0)

_
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/