From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0815EC43457 for ; Fri, 9 Oct 2020 06:35:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9E90422264 for ; Fri, 9 Oct 2020 06:35:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="BPcdxcKp"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="j9CdHem+" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732027AbgJIGfi (ORCPT ); Fri, 9 Oct 2020 02:35:38 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:55376 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731954AbgJIGf3 (ORCPT ); Fri, 9 Oct 2020 02:35:29 -0400 Date: Fri, 09 Oct 2020 06:35:27 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1602225327; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GYNG7Ulit5R5fVcoXLyvJU8CyJkcJxxx1iJPdb4IMtI=; b=BPcdxcKpKCI9v1i5CN29CLMWlNAaiw+WZYwL0XLX/ObC07u8clQC/liX99cJ/qYp3vjgcA 93makoYEi38qHDbpUV9lqN4QXikXT2UgopLEtrafcR2t/TmKnpICcfDC0Lpcx0BJMk4Lwx ahYLIL3FI3ujTyxBp93WT1S2Vjbj3cJ9c8uf6ljazThHqLQfDkAOLNWH1SutpFhp5522r/ 9OLjuWIoZ0GjxVF6XOVCVGYQoGR5JdqppAMjQaV++8THzoEooTA+wN4bq6BZn5lJPKCVEm PJ539EiISJLK8MjEDZV7Q5n16V7kZT0E8gyLQ74BRYFLFT4gIMRyV5qOTCqb2A== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1602225327; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GYNG7Ulit5R5fVcoXLyvJU8CyJkcJxxx1iJPdb4IMtI=; b=j9CdHem+H6r9Ngs6mtbtwnl3Hi4t7kyST0YFEL00CJhnDxPbHFuX0NPMiRjJkA+1mP8EyE TLkTCI4CaJdF0FDQ== From: "tip-bot2 for Wei Yongjun" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: core/rcu] scftorture: Make symbol 'scf_torture_rand' static Cc: Hulk Robot , Wei Yongjun , "Paul E. McKenney" , x86 , LKML MIME-Version: 1.0 Message-ID: <160222532707.7002.13098495882610076134.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the core/rcu branch of tip: Commit-ID: 9a52a574676f8d4aa55f69319231ce6c343b00bb Gitweb: https://git.kernel.org/tip/9a52a574676f8d4aa55f69319231ce6c343b00bb Author: Wei Yongjun AuthorDate: Thu, 02 Jul 2020 09:56:50 -07:00 Committer: Paul E. McKenney CommitterDate: Mon, 24 Aug 2020 18:38:36 -07:00 scftorture: Make symbol 'scf_torture_rand' static The sparse tool complains as follows kernel/scftorture.c:124:1: warning: symbol '__pcpu_scope_scf_torture_rand' was not declared. Should it be static? And this per-CPU variable is not used outside of scftorture.c, so this commit marks it static. Reported-by: Hulk Robot Signed-off-by: Wei Yongjun Signed-off-by: Paul E. McKenney --- kernel/scftorture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/scftorture.c b/kernel/scftorture.c index 8349681..9180de7 100644 --- a/kernel/scftorture.c +++ b/kernel/scftorture.c @@ -134,7 +134,7 @@ static atomic_t n_alloc_errs; static bool scfdone; static char *bangstr = ""; -DEFINE_TORTURE_RANDOM_PERCPU(scf_torture_rand); +static DEFINE_TORTURE_RANDOM_PERCPU(scf_torture_rand); // Print torture statistics. Caller must ensure serialization. static void scf_torture_stats_print(void)