Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2614645rwb; Sat, 29 Jul 2023 10:05:00 -0700 (PDT) X-Google-Smtp-Source: APBJJlGmUJ4cQ5AjNrEm9ty5ZECIjCQLva7AwhYSnUc3qYc7JXTraGxHRIRaTz8JHprWpRU+lWB0 X-Received: by 2002:a17:902:b197:b0:1b8:b442:aa97 with SMTP id s23-20020a170902b19700b001b8b442aa97mr4523343plr.54.1690650300021; Sat, 29 Jul 2023 10:05:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690650300; cv=none; d=google.com; s=arc-20160816; b=QzYDhHrWtTtxFW2plraRzEVZRpO6ypzR4iedJplRTlWiha5AqAX/3fkl898r/Q2geC xgdAHXb3Jo81WU8Y+xa2jdURUcONho+3Q5FrFrwNQDzDnvhY1FkKxKTUaaQInfnsl680 eRajNkTNd4LY51evyri2HJgGu77TpZ2gREgw0Il8il1VcuskVciIhsasi3IcTRI2kgPT rMnqaBRUwxkKDfVkDfYcXx8l0nB/t/6S8aAEOsA/hTQNaKAsJL+6UWirwnyRNv51xdjn Uif2Ntv7yLbFPlgjUoQweuuyoqVpdTVaLc9GWC/puVXc0bLT9V0ayuyozcrHfjuJ1O87 S+3g== 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=qV1mKGTo1HAZ4CYm++JYZHEnfRnVP5qO40eCYy1XceI=; fh=ensvRh18ObyfbTOVA1HyWvWinOtWNSxxC/ejDkozH34=; b=ty4GOTTBqcOv7uUdBQxgXXY9qnmTL7i9TZMLyfWHDcRnYbnBBXEARYVG5ukYkmtE6F o9vzRn7tp5n5lO9h/Pqj3NRnLbh50nfYKw1XSPE+gcwKzTp4JgdfO3L0y8VVT6CguvEn +EguVgSN9cGflbfT8Xob4vwX0Fn4He3RZ3EgEcZV8Wa4iXa8P+ldtKruEcPTeR8uHIv5 T6ci77hT2H5+I/97MgoHgte41F+AxHjaW4mlw9utj6UvEMhPq/kbxO8q2Rd/Hemch9gf 5NBXWhhtRfhd+VUFfeR0m991b4uak63mN5iZbFe0n5Ox1HeBknest5oCzmshcKTR7zv9 c5Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b=S7Lx25DB; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l191-20020a6388c8000000b00563f8ccc097si4763894pgd.780.2023.07.29.10.04.35; Sat, 29 Jul 2023 10:04:59 -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=@joelfernandes.org header.s=google header.b=S7Lx25DB; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232052AbjG2O2N (ORCPT + 99 others); Sat, 29 Jul 2023 10:28:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231948AbjG2O2D (ORCPT ); Sat, 29 Jul 2023 10:28:03 -0400 Received: from mail-il1-x134.google.com (mail-il1-x134.google.com [IPv6:2607:f8b0:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDEB530F4 for ; Sat, 29 Jul 2023 07:28:01 -0700 (PDT) Received: by mail-il1-x134.google.com with SMTP id e9e14a558f8ab-348dfefd1a4so14299185ab.1 for ; Sat, 29 Jul 2023 07:28:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; t=1690640880; x=1691245680; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qV1mKGTo1HAZ4CYm++JYZHEnfRnVP5qO40eCYy1XceI=; b=S7Lx25DBRYt0tjnRLA8AhoSntDcL9y6o1ekAFGNTXrA+Mf8j2i9gpElBv/rLiVGE+U zWI6Fe+2ZdWxeJeiB7VSx4TdmVubfqmVlZqJL446+4d/C1CxnIvrOkDkUtLpNqsM04VS C7GzcZjEatmp3kLZRPfZhDK8JUcMEnuxVNDUk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690640880; x=1691245680; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qV1mKGTo1HAZ4CYm++JYZHEnfRnVP5qO40eCYy1XceI=; b=LFnbXBdCvag47iTkFe7t877Qj44qalQvkHujPf1rvGFj1Y3Y3iNjXFXziX0cVi5TuV 8F2g/WfDIuipKUCi2rd5a1AHH8P0PxaXr/SLPZg6WTTvT9k3MpFHbIzP5M/b+LrheUYz Je9UiwXS1OMbeuLGcUxW+5V4//KhcgHAymQEQsTQT6KVSzs8E2H8+4w169K9bB9AjFyY QTYDmbIgeefCLIbzw2w4jpNe7AZhlxF1XV6dhQpdgX1Sfa4z/KfftlbB8OfQycGVzT4Q bVjlu7Xnll2myvDezvCB9Lj0H41Qz/3xDdvLiyxs4mLYRZ+li4pKeUMLPOX5YlCRrucQ 3idw== X-Gm-Message-State: ABy/qLaOWi+g8ffkuMKePKw64gCFKMOFBHeLDwQnLxOIe8pDvGK7QxHm +/i9+w3sQpokm3254QzlMyazYsTPrXnZrvPFZEk= X-Received: by 2002:a92:c566:0:b0:345:df7f:efc4 with SMTP id b6-20020a92c566000000b00345df7fefc4mr3289147ilj.27.1690640880705; Sat, 29 Jul 2023 07:28:00 -0700 (PDT) Received: from joelboxx5.c.googlers.com.com (254.82.172.34.bc.googleusercontent.com. [34.172.82.254]) by smtp.gmail.com with ESMTPSA id q9-20020a0566380ec900b0042b35c7b8c5sm1855362jas.61.2023.07.29.07.27.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Jul 2023 07:28:00 -0700 (PDT) From: "Joel Fernandes (Google)" To: linux-kernel@vger.kernel.org Cc: rcu@vger.kernel.org, paulmck@kernel.org, "Joel Fernandes (Google)" , Frederic Weisbecker , Neeraj Upadhyay , Josh Triplett , Boqun Feng , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Zqiang Subject: [PATCH v2 5/5] rcu/tree: Remove superfluous return from void call_rcu* functions Date: Sat, 29 Jul 2023 14:27:36 +0000 Message-ID: <20230729142738.222208-7-joel@joelfernandes.org> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog In-Reply-To: <20230729142738.222208-1-joel@joelfernandes.org> References: <20230729142738.222208-1-joel@joelfernandes.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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 The return keyword is not needed here. Signed-off-by: Joel Fernandes (Google) --- 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); -- 2.41.0.487.g6d72f3e995-goog