From patchwork Fri Oct 13 11:58:47 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frederic Weisbecker X-Patchwork-Id: 13420804 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E070ECDB482 for ; Fri, 13 Oct 2023 11:59:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231591AbjJML7U (ORCPT ); Fri, 13 Oct 2023 07:59:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52078 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231635AbjJML7T (ORCPT ); Fri, 13 Oct 2023 07:59:19 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13657E1; Fri, 13 Oct 2023 04:59:17 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 64D3EC433C9; Fri, 13 Oct 2023 11:59:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697198356; bh=bwVDWmfgW6KPhnAu5RS+ChX+7Qv0AeJsa5cg4h7G8/k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fW8I0GQfeVeMKSCJ2eo4nXP9LY628stEuP5ZiLSvnFUYwa0FrRvHtHuC49O8rQ3WM 5Dh852JhFOCBusJDIqyR4iChhbP45j1iA3hcfUIlBdmRboAk/kpo211ybu4M3cfjnF ryGUWIylqDHxxKLjPBEc01+e4J9vOnG7AMSDLxPj7XEMTdE7sKwtrCN9ttvDfpVPa9 vajb7cGPCEisvuOGPobI0V/rhl/9jwvaq6IdNPEMVJ+CgHs+if6icB/LekJhPjD4CN W0MkrgwqI9ePgi4EtZNhMm+6HbPqkILkyTYGTMVTcTI+PwUq48NTdTdyHt052pXM9z kwJfdgouswtvA== From: Frederic Weisbecker To: LKML Cc: "Joel Fernandes (Google)" , Boqun Feng , Josh Triplett , Mathieu Desnoyers , Neeraj Upadhyay , "Paul E . McKenney" , Steven Rostedt , Uladzislau Rezki , rcu , Frederic Weisbecker Subject: [PATCH 03/18] rcu/tree: Remove superfluous return from void call_rcu* functions Date: Fri, 13 Oct 2023 13:58:47 +0200 Message-Id: <20231013115902.1059735-4-frederic@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231013115902.1059735-1-frederic@kernel.org> References: <20231013115902.1059735-1-frederic@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: rcu@vger.kernel.org From: "Joel Fernandes (Google)" The return keyword is not needed here. Signed-off-by: Joel Fernandes (Google) Signed-off-by: Paul E. McKenney Signed-off-by: Frederic Weisbecker --- kernel/rcu/tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index cb1caefa8bd0..7c79480bfaa0 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @@ -2713,7 +2713,7 @@ __call_rcu_common(struct rcu_head *head, rcu_callback_t func, bool lazy_in) */ void call_rcu_hurry(struct rcu_head *head, rcu_callback_t func) { - return __call_rcu_common(head, func, false); + __call_rcu_common(head, func, false); } EXPORT_SYMBOL_GPL(call_rcu_hurry); #endif @@ -2764,7 +2764,7 @@ EXPORT_SYMBOL_GPL(call_rcu_hurry); */ void call_rcu(struct rcu_head *head, rcu_callback_t func) { - return __call_rcu_common(head, func, IS_ENABLED(CONFIG_RCU_LAZY)); + __call_rcu_common(head, func, IS_ENABLED(CONFIG_RCU_LAZY)); } EXPORT_SYMBOL_GPL(call_rcu);