From patchwork Fri Jun 22 15:35:02 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: 9565 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 E8EB423E55 for ; Fri, 22 Jun 2012 15:35:31 +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 B19BBA188F0 for ; Fri, 22 Jun 2012 15:35:31 +0000 (UTC) Received: by ghbz12 with SMTP id z12so1758023ghb.11 for ; Fri, 22 Jun 2012 08:35:31 -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=y/jpBURvZhOWQmPEHPlVuDfXOImJ+TbkRULqwAMv5C4=; b=BRBJxHW0sWK8vSEXria6HxgUy71gyPEJPdKS5KB+UfdfW/J9bk84/bO9gQ6MAJ25Mf 3KkDGx5cQ/GdiHAzPTulcU/vcpf72A30OPO7hLmErtKjdY/aLcqn4cLAPJbWpyym6rDM JG7nfgdnmZWxPbZWCf0cp5zYUlQSYOC0DqiVSt7A2AMo4T5Z1ktUHR++kLko5kJUxNOe Oq847RITS6FS7W0LqBUXE2Mb5uozEz6Uh9nrzPUceXioy2kYgbLYsRAkuxeTC+PgNlOS inFH+opspyUuytW8or2cERm0nP7VvrO5i6tewIrr9GpJBryvBoV9qzBp4SNBozbMfDhC ADTw== Received: by 10.42.210.193 with SMTP id gl1mr369587icb.57.1340379331121; Fri, 22 Jun 2012 08:35:31 -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 v20csp72314ibb; Fri, 22 Jun 2012 08:35:29 -0700 (PDT) Received: by 10.68.192.39 with SMTP id hd7mr11071704pbc.97.1340379329084; Fri, 22 Jun 2012 08:35:29 -0700 (PDT) Received: from e36.co.us.ibm.com (e36.co.us.ibm.com. [32.97.110.154]) by mx.google.com with ESMTPS id ou5si10016813pbb.322.2012.06.22.08.35.28 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 22 Jun 2012 08:35:29 -0700 (PDT) Received-SPF: pass (google.com: domain of paulmck@linux.vnet.ibm.com designates 32.97.110.154 as permitted sender) client-ip=32.97.110.154; Authentication-Results: mx.google.com; spf=pass (google.com: domain of paulmck@linux.vnet.ibm.com designates 32.97.110.154 as permitted sender) smtp.mail=paulmck@linux.vnet.ibm.com Received: from /spool/local by e36.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 22 Jun 2012 09:35:27 -0600 Received: from d03dlp02.boulder.ibm.com (9.17.202.178) by e36.co.us.ibm.com (192.168.1.136) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 22 Jun 2012 09:35:25 -0600 Received: from d03relay03.boulder.ibm.com (d03relay03.boulder.ibm.com [9.17.195.228]) by d03dlp02.boulder.ibm.com (Postfix) with ESMTP id EC0FC3E4005E for ; Fri, 22 Jun 2012 15:35:22 +0000 (WET) Received: from d03av01.boulder.ibm.com (d03av01.boulder.ibm.com [9.17.195.167]) by d03relay03.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q5MFZLJV157114 for ; Fri, 22 Jun 2012 09:35:21 -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 q5MFZFoV023149 for ; Fri, 22 Jun 2012 09:35:17 -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 q5MFZFQP023090; Fri, 22 Jun 2012 09:35:15 -0600 Received: by paulmck-ThinkPad-W500 (Postfix, from userid 1000) id 10AEAE71A0; Fri, 22 Jun 2012 08:35:15 -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, sbw@mit.edu, patches@linaro.org, "Paul E. McKenney" Subject: [PATCH tip/core/rcu 07/17] key: Remove extraneous parentheses from rcu_assign_keypointer() Date: Fri, 22 Jun 2012 08:35:02 -0700 Message-Id: <1340379312-6684-7-git-send-email-paulmck@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.8 In-Reply-To: <1340379312-6684-1-git-send-email-paulmck@linux.vnet.ibm.com> References: <20120622153501.GA6626@linux.vnet.ibm.com> <1340379312-6684-1-git-send-email-paulmck@linux.vnet.ibm.com> X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12062215-7606-0000-0000-000001610706 X-Gm-Message-State: ALoCoQnkzaKnr6R6XkHSgIRwCaC8yeFT8ljEo5B0bHEL5jKhaKwOHTaR7Di1uwlewNgLvBT5CUDD 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[];