Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7589559rwr; Wed, 10 May 2023 09:59:48 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ42+DJMExBsCziJJ2shThxRj8GEpVHE67BdZxMrmUGgyLjYQvE8KXRLYXD5SpoxrBWVXCg7 X-Received: by 2002:a17:90b:2289:b0:247:1233:9b28 with SMTP id kx9-20020a17090b228900b0024712339b28mr18145310pjb.17.1683737987844; Wed, 10 May 2023 09:59:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683737987; cv=none; d=google.com; s=arc-20160816; b=xZ+tMqWJXt/Kp+ra5wzJ/HQSg1h41rDxWGe5n2SwQ2QHpz9fCdArRKImWIN/diEJ+f PIWNeDtFOx4E2GdYQJ3jyWX15/KrnLUL0kNn6eik6yt6JxXX27Np+f6dF8l6HyZmFD8y O9CophHfEKlXQ7cUIPtV6m+uEV7Sa4xmeH/37G8VlwghEfHDsaiFXv2FyRkdXE6R4tJ7 eClkIfmOLDcYJsY47qLXEG+0YSuOeZlfLBCWotfimqVarwwpeiFq+QlQH/YdkinXTI6x IzuKQWXM1A5fs9FPRfeiqOgnP7mxKyNz/nw1R/DYIwZH78gACgxHZvLQ2jyz8BbWYD3Q TMhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=wbD3FdmvSLLwy2D44F6VTd7R/K8bDFpWHRcZ6mMTOmg=; b=omis9+0vCBxtaqke/sfou5mnlTnOSYL/1ox0JGDnXr1ScwfQzr+O/O2QRESNU7sY69 ugaZ4yAMe0J9GttJ3u0QeYsP8RGpJyZdCabuIzwgMm6A7oYg0nIWZA0XKLiuxuz+7SU9 B4wstQLDPDot6L4cTjmMvaemVOfweknY41DwPa77X0U1FbM3DraYK/Hqo6acsNJ63g9X gQegIX6/M2/cNZd+PQN05LmrW+ftkAfoM7WVMKW7FSpZg4QM/ufMOKT9xp64Xcoh/zM+ 3p2nhlNOyN+5VS6hHjXwWJuI6znNOWLpWFlyOWG5RU5dtab8lacISWpuFwzzpH4MPixf favw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=K4I+TNIM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i6-20020a17090a974600b0023409b3983fsi23017509pjw.99.2023.05.10.09.59.36; Wed, 10 May 2023 09:59:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=K4I+TNIM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236065AbjEJQ6h (ORCPT + 99 others); Wed, 10 May 2023 12:58:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39798 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236017AbjEJQ6f (ORCPT ); Wed, 10 May 2023 12:58:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2EEB9C; Wed, 10 May 2023 09:58:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6E92F63F2F; Wed, 10 May 2023 16:58:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CDFD6C433EF; Wed, 10 May 2023 16:58:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1683737913; bh=w0ne2UEEwb1HXO/hog3r2ij7PcPs9e+mZYY78+weSf8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=K4I+TNIM/LFj0At87OTvDGe8F5jYXUYn3932b/WhEKaSwLLJdqJclULahRC58qInM G8Qns7WhbE1BHPRwTj/PI+S86sIp/Q1bS+us7JGUMvep2l0JLsg3ls0C4pcDphzv5N 4OVCT+Tf974fkEOcl+fU8awmV0wtt/X6c7p0N9/PVF85nvGLRh7VT5T0CUYqQmI64p 7X8Sd5+Xl5ijfAXbNWvul8RiB0rfQgaAe/RiOhgsV7RUnQBTDx/xR/9mXxB+jK61c5 gbZmFZhon1pUyNPZNNXp4chw8+dZuc+Fpwz9uEBhqm9otPb3STjn6fr1wvkkuZRxjE dOsnidVPjUMOA== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 8856CCE126E; Wed, 10 May 2023 09:58:33 -0700 (PDT) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, "Paul E. McKenney" , Christoph Hellwig , Sachin Sant , "Zhang, Qiang1" Subject: [PATCH rcu 1/8] srcu: Remove extraneous parentheses from srcu_read_lock() etc. Date: Wed, 10 May 2023 09:58:25 -0700 Message-Id: <20230510165832.2187453-1-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit removes extraneous parentheses from srcu_read_lock(), srcu_read_lock_nmisafe(), srcu_read_unlock(), and srcu_read_unlock_nmisafe(). Looks like someone was once a macro. Cc: Christoph Hellwig Tested-by: Sachin Sant Tested-by: "Zhang, Qiang1" Signed-off-by: Paul E. McKenney --- include/linux/srcu.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/linux/srcu.h b/include/linux/srcu.h index 41c4b26fb1c1..eb92a50a4599 100644 --- a/include/linux/srcu.h +++ b/include/linux/srcu.h @@ -212,7 +212,7 @@ static inline int srcu_read_lock(struct srcu_struct *ssp) __acquires(ssp) srcu_check_nmi_safety(ssp, false); retval = __srcu_read_lock(ssp); - srcu_lock_acquire(&(ssp)->dep_map); + srcu_lock_acquire(&ssp->dep_map); return retval; } @@ -229,7 +229,7 @@ static inline int srcu_read_lock_nmisafe(struct srcu_struct *ssp) __acquires(ssp srcu_check_nmi_safety(ssp, true); retval = __srcu_read_lock_nmisafe(ssp); - rcu_lock_acquire(&(ssp)->dep_map); + rcu_lock_acquire(&ssp->dep_map); return retval; } @@ -284,7 +284,7 @@ static inline void srcu_read_unlock(struct srcu_struct *ssp, int idx) { WARN_ON_ONCE(idx & ~0x1); srcu_check_nmi_safety(ssp, false); - srcu_lock_release(&(ssp)->dep_map); + srcu_lock_release(&ssp->dep_map); __srcu_read_unlock(ssp, idx); } @@ -300,7 +300,7 @@ static inline void srcu_read_unlock_nmisafe(struct srcu_struct *ssp, int idx) { WARN_ON_ONCE(idx & ~0x1); srcu_check_nmi_safety(ssp, true); - rcu_lock_release(&(ssp)->dep_map); + rcu_lock_release(&ssp->dep_map); __srcu_read_unlock_nmisafe(ssp, idx); } -- 2.40.1