From patchwork Tue Oct 17 12:19:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frederic Weisbecker X-Patchwork-Id: 13425074 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 A35B5CDB474 for ; Tue, 17 Oct 2023 12:19:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235028AbjJQMTo (ORCPT ); Tue, 17 Oct 2023 08:19:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235015AbjJQMTd (ORCPT ); Tue, 17 Oct 2023 08:19:33 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 382B010CE; Tue, 17 Oct 2023 05:19:21 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4CF5FC433CC; Tue, 17 Oct 2023 12:19:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697545160; bh=KRYagrNjJg3nrUhLUUzrvcOlwM6Y8bhCaiTkgIqmUKs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GR0jSiaU65B9zcMl5Gj8T4xNpbN7aNO4dWavSGJkMDC6fRmb8S1tg8JBiGtCFU26g FLz3f8MDGV0c3MtL8yibbz6CdqWFykTTSqwAhpADqJ91kwZC10zIRg5INYxWQxlGwL Z8bBltYzYdT3d2Rj2bb2tO/SKaaONdE8DwwQihGmiFt3h3B1Y9IDtSPvS4RoLeX7Ly lQoIhVvBqS1hwf8v2Vyv5XBBLHbcjYb+DRdRs6H+AF6/Al463OlG3yxFvrtwbrRuc2 KDDwSBIf/DuA4LDoEjr9Vk7xZVpCws44O5eW/D6tnGiwvr7SC+vskkJuc3tDQUSRT1 PzOc0PJ0EhzWA== From: Frederic Weisbecker To: LKML Cc: Jiapeng Chong , Boqun Feng , Joel Fernandes , Josh Triplett , Mathieu Desnoyers , Neeraj Upadhyay , "Paul E . McKenney" , Steven Rostedt , Uladzislau Rezki , rcu , Abaci Robot , Frederic Weisbecker Subject: [PATCH 3/3] rcu-tasks: Make rcu_tasks_lazy_ms static Date: Tue, 17 Oct 2023 14:19:05 +0200 Message-Id: <20231017121905.1156166-4-frederic@kernel.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231017121905.1156166-1-frederic@kernel.org> References: <20231017121905.1156166-1-frederic@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: rcu@vger.kernel.org From: Jiapeng Chong The rcu_tasks_lazy_ms variable is not used outside the file tasks.h, so this commit marks it static. kernel/rcu/tasks.h:1085:5: warning: symbol 'rcu_tasks_lazy_ms' was not declared. Should it be static? Reported-by: Abaci Robot Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=6086 Signed-off-by: Jiapeng Chong Reviewed-by: Joel Fernandes (Google) Signed-off-by: Paul E. McKenney Signed-off-by: Frederic Weisbecker --- kernel/rcu/tasks.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/rcu/tasks.h b/kernel/rcu/tasks.h index 94bb5abdbb37..018f03f20629 100644 --- a/kernel/rcu/tasks.h +++ b/kernel/rcu/tasks.h @@ -1086,7 +1086,7 @@ void rcu_barrier_tasks(void) } EXPORT_SYMBOL_GPL(rcu_barrier_tasks); -int rcu_tasks_lazy_ms = -1; +static int rcu_tasks_lazy_ms = -1; module_param(rcu_tasks_lazy_ms, int, 0444); static int __init rcu_spawn_tasks_kthread(void)