Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1604706ybz; Sun, 26 Apr 2020 00:01:51 -0700 (PDT) X-Google-Smtp-Source: APiQypL6zeO1EzgfiHCam1Ii+QEwADNppB6wjIUPJgEWR7u1M6Ctk8GOJAXffSAxbQXaLDGNFXN8 X-Received: by 2002:a05:6402:1597:: with SMTP id c23mr14587664edv.353.1587884511662; Sun, 26 Apr 2020 00:01:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587884511; cv=none; d=google.com; s=arc-20160816; b=i5RUjcnKCEdRDe0qdC8bYXSqJaExGQXJnMQEh66o3U4HP6dU2DQt0NigA+KHUJyNQY 4x+jzPptVvjLOE6t7qY9/j6HqM8EJRBV8i05e0aOD0uXYruxjlS8irQt9b3iy4Z1DT3b LD8q3cETBIEm/GamqW2zguIlwia51atIDHx1aMCyw/+4oVOkpmg4H1gI7cXTwhZ1Hc1Z ZbAiK4dytyxovxLd8GRHhuPY8d8ZRo0bv2C+CfG2zJbqKEkYs0db0Sxov1xqp/Pj3J0i J53Rl2ASP49GNGTH9sY1Xm20Sr4fTgaKYJCpOmfjRuZMRF7QLeqD7kFxBbMRk+Ngkgje uFiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:date; bh=hS2UK8KBZDYNSTukNNXW/u6Kn9yEm5ui/PMP3EbwlZY=; b=gcrqVGQklLD2d++kno99QD2Ztwplm/2/T1MUCMxyvCCWkkNDRZjtk/Xt2dUkv5gnBf lr07SWa1OYU/ZVqKkIgKI/MJx9W//h7J0DYHUZzGbI5gJWBbA7OQbpfNpMGzItxPTxsB fJfav4czs/EMk12ErQPUK9PAqM+DbgR9x+UJKOTgeAsHzd489kE3FIjNX2UaFgdasziC h9CLSG/iY06OmLoVhd9Sph4W/gxU94rKPft8UUZWiK/6MvhK1po3MPmXHO0T2WRe34Ez Xg242ln80goZPQwGBofG6H1jfUS67JFyLR5mPW4UuQF46OMHPWuhOs8cTEYXB1P7udFw ZDjg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y8si6117247edv.143.2020.04.26.00.01.28; Sun, 26 Apr 2020 00:01:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726377AbgDZGrz (ORCPT + 99 others); Sun, 26 Apr 2020 02:47:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726269AbgDZGrx (ORCPT ); Sun, 26 Apr 2020 02:47:53 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F254C09B053; Sat, 25 Apr 2020 23:47:53 -0700 (PDT) Received: from [5.158.153.53] (helo=tip-bot2.lab.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jSb4o-0008Sy-8y; Sun, 26 Apr 2020 08:47:42 +0200 Received: from [127.0.1.1] (localhost [IPv6:::1]) by tip-bot2.lab.linutronix.de (Postfix) with ESMTP id EA0231C0178; Sun, 26 Apr 2020 08:47:41 +0200 (CEST) Date: Sun, 26 Apr 2020 06:47:41 -0000 From: "tip-bot2 for Josh Poimboeuf" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/urgent] x86/unwind/orc: Convert global variables to static Cc: Miroslav Benes , Josh Poimboeuf , Ingo Molnar , Andy Lutomirski , Dave Jones , Jann Horn , Peter Zijlstra , Thomas Gleixner , Vince Weaver , x86 , LKML In-Reply-To: <43ae310bf7822b9862e571f36ae3474cfde8f301.1587808742.git.jpoimboe@redhat.com> References: <43ae310bf7822b9862e571f36ae3474cfde8f301.1587808742.git.jpoimboe@redhat.com> MIME-Version: 1.0 Message-ID: <158788366146.28353.15541509747149730.tip-bot2@tip-bot2> X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/urgent branch of tip: Commit-ID: 153eb2223c794251b28400f3f74862e090d23f16 Gitweb: https://git.kernel.org/tip/153eb2223c794251b28400f3f74862e090d23f16 Author: Josh Poimboeuf AuthorDate: Sat, 25 Apr 2020 05:03:05 -05:00 Committer: Ingo Molnar CommitterDate: Sat, 25 Apr 2020 12:22:28 +02:00 x86/unwind/orc: Convert global variables to static These variables aren't used outside of unwind_orc.c, make them static. Also annotate some of them with '__ro_after_init', as applicable. Reviewed-by: Miroslav Benes Signed-off-by: Josh Poimboeuf Signed-off-by: Ingo Molnar Cc: Andy Lutomirski Cc: Dave Jones Cc: Jann Horn Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Vince Weaver Link: https://lore.kernel.org/r/43ae310bf7822b9862e571f36ae3474cfde8f301.1587808742.git.jpoimboe@redhat.com --- arch/x86/kernel/unwind_orc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/x86/kernel/unwind_orc.c b/arch/x86/kernel/unwind_orc.c index e9cc182..64889da 100644 --- a/arch/x86/kernel/unwind_orc.c +++ b/arch/x86/kernel/unwind_orc.c @@ -15,12 +15,12 @@ extern int __stop_orc_unwind_ip[]; extern struct orc_entry __start_orc_unwind[]; extern struct orc_entry __stop_orc_unwind[]; -static DEFINE_MUTEX(sort_mutex); -int *cur_orc_ip_table = __start_orc_unwind_ip; -struct orc_entry *cur_orc_table = __start_orc_unwind; +static bool orc_init __ro_after_init; +static unsigned int lookup_num_blocks __ro_after_init; -unsigned int lookup_num_blocks; -bool orc_init; +static DEFINE_MUTEX(sort_mutex); +static int *cur_orc_ip_table = __start_orc_unwind_ip; +static struct orc_entry *cur_orc_table = __start_orc_unwind; static inline unsigned long orc_ip(const int *ip) {