Messages in this thread Patch in this message | | | Date | Mon, 30 May 2005 16:22:28 +0530 | From | Dipankar Sarma <> | Subject | Re: [rfc: patch 1/6] Fix rcu initializers |
| |
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@in.ibm.com>
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-rc5-fd/include/linux/rcupdate.h~fix-rcu-initializer 2005-05-29 18:54:06.000000000 +0530 +++ linux-2.6.12-rc5-fd-dipankar/include/linux/rcupdate.h 2005-05-29 18:54:06.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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |