From patchwork Fri Jun 15 20:13:08 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: 9344 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 C5F0523E5A for ; Fri, 15 Jun 2012 20:13:44 +0000 (UTC) Received: from mail-gh0-f180.google.com (mail-gh0-f180.google.com [209.85.160.180]) by fiordland.canonical.com (Postfix) with ESMTP id 8ECAAA184ED for ; Fri, 15 Jun 2012 20:13:44 +0000 (UTC) Received: by mail-gh0-f180.google.com with SMTP id z12so2899342ghb.11 for ; Fri, 15 Jun 2012 13:13:44 -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=MdVQS7n/Uc2u6fRsHpDV4++0nHqSyGeEvjgN+tqq6Ms=; b=Zmti2KwujZ2VgFn3OFFgjiR580Dr+lC+fG/7rSf5Ltw6LF0mb48wN8z0fPcAy9zJP/ GOEPin55pUHQJbOlHfacmiCisl03hTLO6BlE/yjnUTd2758Y133w5CyrtFnMxvH+ottn Bkc8k68CgixGOltz1BFTBlxTBN1DmVg3q0KkckOhmiFOP7KCJdZyJK/XEvrcQd3Mj+9u TB+ZxxD3JlzGpvVCxw5VVbVZHt5H3yYNmPOy2GKHoxs/vWnizFBoNc1au1Qle7/mr75J hnAf+l0Fq8gFbYLU4ktVQAS+q4RPiNeeloE7IwH9VjCP0/5GZIIZouizDlINJokNVGOm Z0Fw== Received: by 10.50.87.227 with SMTP id bb3mr3167132igb.57.1339791224058; Fri, 15 Jun 2012 13:13:44 -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 v20csp167555ibb; Fri, 15 Jun 2012 13:13:43 -0700 (PDT) Received: by 10.68.224.70 with SMTP id ra6mr23848412pbc.11.1339791223095; Fri, 15 Jun 2012 13:13:43 -0700 (PDT) Received: from e31.co.us.ibm.com (e31.co.us.ibm.com. [32.97.110.149]) by mx.google.com with ESMTPS id vh4si3254336pbc.203.2012.06.15.13.13.42 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 15 Jun 2012 13:13:43 -0700 (PDT) Received-SPF: pass (google.com: domain of paulmck@linux.vnet.ibm.com designates 32.97.110.149 as permitted sender) client-ip=32.97.110.149; Authentication-Results: mx.google.com; spf=pass (google.com: domain of paulmck@linux.vnet.ibm.com designates 32.97.110.149 as permitted sender) smtp.mail=paulmck@linux.vnet.ibm.com Received: from /spool/local by e31.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 15 Jun 2012 14:13:42 -0600 Received: from d03dlp03.boulder.ibm.com (9.17.202.179) by e31.co.us.ibm.com (192.168.1.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 15 Jun 2012 14:13:40 -0600 Received: from d03relay05.boulder.ibm.com (d03relay05.boulder.ibm.com [9.17.195.107]) by d03dlp03.boulder.ibm.com (Postfix) with ESMTP id 5854E19D8061 for ; Fri, 15 Jun 2012 20:13:34 +0000 (WET) Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d03relay05.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q5FKDQkX147704 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 q5FKDIjA015521 for ; Fri, 15 Jun 2012 14:13:26 -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 q5FKDIUo015497; Fri, 15 Jun 2012 14:13:18 -0600 Received: by paulmck-ThinkPad-W500 (Postfix, from userid 1000) id 61366E71A4; 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 07/14] key: Remove extraneous parentheses from rcu_assign_keypointer() Date: Fri, 15 Jun 2012 13:13:08 -0700 Message-Id: <1339791195-26389-7-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-7282-0000-0000-000009F3A901 X-Gm-Message-State: ALoCoQnepXuvBTeWiSETdptCvjUiqBzZVGgt3HxpPBIxiTJBO3uAnStXZNgdr/PEZdacUn4IBCUm From: "Paul E. McKenney" This commit removes the extraneous parentheses from rcu_assign_keypointer() so that rcu_assign_pointer() can be wrapped in do-while. Signed-off-by: Paul E. McKenney Reviewed-by: Josh Triplett --- include/linux/key.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/key.h b/include/linux/key.h index 4cd22ed..6fafcf4 100644 --- a/include/linux/key.h +++ b/include/linux/key.h @@ -303,7 +303,7 @@ static inline bool key_is_instantiated(const struct key *key) rwsem_is_locked(&((struct key *)(KEY))->sem))) #define rcu_assign_keypointer(KEY, PAYLOAD) \ - (rcu_assign_pointer((KEY)->payload.rcudata, PAYLOAD)) + rcu_assign_pointer((KEY)->payload.rcudata, PAYLOAD) #ifdef CONFIG_SYSCTL extern ctl_table key_sysctls[];