From patchwork Fri Jun 15 20:13:06 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul E. McKenney" X-Patchwork-Id: 9338 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 337F323E5A for ; Fri, 15 Jun 2012 20:13:33 +0000 (UTC) Received: from mail-gg0-f180.google.com (mail-gg0-f180.google.com [209.85.161.180]) by fiordland.canonical.com (Postfix) with ESMTP id 04117A18368 for ; Fri, 15 Jun 2012 20:13:32 +0000 (UTC) Received: by mail-gg0-f180.google.com with SMTP id f1so2920166ggn.11 for ; Fri, 15 Jun 2012 13:13:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-content-scanned:x-cbid:x-gm-message-state; bh=lWb6Gk79pnRIAggPE/KtT3AXeI+6JbhP2Exqc/sHZU8=; b=njbJmH456bOi9v7rclRAaKnXFRpeclm8/yJNA/goq7HDTFvQoWxebhRRMiNQc6oN1w uqfuOrfbblDJnw3bKlNKfr5PWdTlGZbPBf6xff00oiI97Z9Sm4xm1SUrLFBE7Im/OlXN y44x5LyIyOGq3j6zxQzoPGZiXRpiqRNrgdbSDDklqhYK7qpYkPQE0s+EIbsisLu7pfQm K35+ziQAVAyVPKPHDHfYNC/HB2mwAyBYf1wjGoL765/rS73NkJPVb7Lx7oHuWD4pqPW2 N1OJLpnrvgK4dqm5s0uho/gEJEeAl9Uiy77oNeyrz5ll+kne88SA1vSBDmp4zzLUkPtd V7Tg== Received: by 10.50.195.234 with SMTP id ih10mr3280048igc.0.1339791212638; Fri, 15 Jun 2012 13:13:32 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.231.24.148 with SMTP id v20csp167537ibb; Fri, 15 Jun 2012 13:13:31 -0700 (PDT) Received: by 10.68.226.73 with SMTP id rq9mr22818529pbc.145.1339791211072; Fri, 15 Jun 2012 13:13:31 -0700 (PDT) Received: from e37.co.us.ibm.com (e37.co.us.ibm.com. [32.97.110.158]) by mx.google.com with ESMTPS id vh4si3253607pbc.233.2012.06.15.13.13.30 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 15 Jun 2012 13:13:31 -0700 (PDT) Received-SPF: pass (google.com: domain of paulmck@linux.vnet.ibm.com designates 32.97.110.158 as permitted sender) client-ip=32.97.110.158; Authentication-Results: mx.google.com; spf=pass (google.com: domain of paulmck@linux.vnet.ibm.com designates 32.97.110.158 as permitted sender) smtp.mail=paulmck@linux.vnet.ibm.com Received: from /spool/local by e37.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 15 Jun 2012 14:13:30 -0600 Received: from d03dlp03.boulder.ibm.com (9.17.202.179) by e37.co.us.ibm.com (192.168.1.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 15 Jun 2012 14:13:28 -0600 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by d03dlp03.boulder.ibm.com (Postfix) with ESMTP id 5128819D8052 for ; Fri, 15 Jun 2012 20:13:25 +0000 (WET) Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q5FKDQjl191732 for ; Fri, 15 Jun 2012 14:13:26 -0600 Received: from d03av01.boulder.ibm.com (loopback [127.0.0.1]) by d03av01.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q5FKDIjs015495 for ; Fri, 15 Jun 2012 14:13:23 -0600 Received: from paulmck-ThinkPad-W500 ([9.47.24.152]) by d03av01.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id q5FKDIEP015467; Fri, 15 Jun 2012 14:13:18 -0600 Received: by paulmck-ThinkPad-W500 (Postfix, from userid 1000) id 4289FE71A0; Fri, 15 Jun 2012 13:13:18 -0700 (PDT) From: "Paul E. McKenney" To: linux-kernel@vger.kernel.org Cc: mingo@elte.hu, laijs@cn.fujitsu.com, dipankar@in.ibm.com, akpm@linux-foundation.org, mathieu.desnoyers@polymtl.ca, josh@joshtriplett.org, niv@us.ibm.com, tglx@linutronix.de, peterz@infradead.org, rostedt@goodmis.org, Valdis.Kletnieks@vt.edu, dhowells@redhat.com, eric.dumazet@gmail.com, darren@dvhart.com, fweisbec@gmail.com, patches@linaro.org, "Paul E. McKenney" Subject: [PATCH tip/core/rcu 05/14] rcu: Use new INIT_RCU_POINTER for gcc-style initializations Date: Fri, 15 Jun 2012 13:13:06 -0700 Message-Id: <1339791195-26389-5-git-send-email-paulmck@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.8 In-Reply-To: <1339791195-26389-1-git-send-email-paulmck@linux.vnet.ibm.com> References: <20120615201256.GA26120@linux.vnet.ibm.com> <1339791195-26389-1-git-send-email-paulmck@linux.vnet.ibm.com> X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12061520-7408-0000-0000-000005E49159 X-Gm-Message-State: ALoCoQlE8zP0UNQJvsjgtd2hVLYomU+WlU0cPZ4pVqyEWJNRUjNSyP6ITnTLSsRMKfZPFmi+MBqa From: "Paul E. McKenney" This commit applies the INIT_RCU_POINTER() macro to all uses of RCU_INIT_POINTER() that were all too cleverly creating gcc-style initializations. Signed-off-by: Paul E. McKenney --- include/linux/init_task.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/init_task.h b/include/linux/init_task.h index e4baff5..cdaa339 100644 --- a/include/linux/init_task.h +++ b/include/linux/init_task.h @@ -168,8 +168,8 @@ extern struct cred init_cred; .children = LIST_HEAD_INIT(tsk.children), \ .sibling = LIST_HEAD_INIT(tsk.sibling), \ .group_leader = &tsk, \ - RCU_INIT_POINTER(.real_cred, &init_cred), \ - RCU_INIT_POINTER(.cred, &init_cred), \ + INIT_RCU_POINTER(real_cred, &init_cred), \ + INIT_RCU_POINTER(cred, &init_cred), \ .comm = INIT_TASK_COMM, \ .thread = INIT_THREAD, \ .fs = &init_fs, \