Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3464109ybb; Mon, 13 Apr 2020 08:35:26 -0700 (PDT) X-Google-Smtp-Source: APiQypKoolM543XcLAAQ+qhOOeMgVLsqXOLxrnbtLMduPAVBBmZnWMxg7nmw55Av6O9tH9ulPFEN X-Received: by 2002:aa7:d5c6:: with SMTP id d6mr16560364eds.91.1586792125871; Mon, 13 Apr 2020 08:35:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586792125; cv=none; d=google.com; s=arc-20160816; b=mDZl9DLjxoxh+BaflUo1s6//+0fpWn2DNlZlC/s0eXqiPVDjgXGV51tAwYU73DD6br 2CNDdEVS9ISes5qQCbVzHV58k3z03XOfo8Qgae4zMl67A+SIe4WZfyh9GB76f0fFF11N v5+wiZxsw+HONInd5vBnPjNZyLwusGSdeZeeKh2SKkxYnK3X7h0NDQnDmVPxfsaleYtI eCNtBOPqRPweUxLEABPj1DeDkiXQkL6NE5ued3Nscolia00oI55QTyw0qjdC+lxEvSMR ++ar/llGKGFR5+b/n5oTx16fjYEHdSemFye+t5qiAfnap99N0t2WrX6sfIF8qKmUFMxa yhBA== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=2Sm2TzUdkC6hw1ndCjQ7aP7HJefqahFEuBiubec5j08=; b=gQdPyhHdaJ4u9b9unIa3hu4IKG5Fu2WXb0g7EaZLpRlazb1LA9dq5BDudrUZOOS3O1 aLrnuCuEaNzSpT0JjIR5+8LJaAlOnqW5+WtAh0KSO9zF6x8XkkLL+Vdf3embsIiGbTzi lHuizc6LE72tkbZokHkMpuF5j2UCuQahhNCGrrAxIUAhTtNN3dDiubfj3FE5T6+JOrAy C1u5mFyeTjAlp/MTDGWx+ZgqLNyegs3VNS/4XamgjC5wVOHc51ZYEnt8WeU92LOjooMQ IyOcu+TB7Rqg4BhASL97QCnfGAy2NRxPG4OgJX3qCRWRmEWztlJW1B4YMp9VE/9dAMv0 nEOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=2BcCxaxN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m18si6344460eda.110.2020.04.13.08.35.02; Mon, 13 Apr 2020 08:35:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for 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; dkim=pass header.i=@bytedance-com.20150623.gappssmtp.com header.s=20150623 header.b=2BcCxaxN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=bytedance.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730845AbgDMOrt (ORCPT + 99 others); Mon, 13 Apr 2020 10:47:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728185AbgDMOrs (ORCPT ); Mon, 13 Apr 2020 10:47:48 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CDBF8C0A3BDC for ; Mon, 13 Apr 2020 07:47:48 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id n10so4588083pff.3 for ; Mon, 13 Apr 2020 07:47:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bytedance-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2Sm2TzUdkC6hw1ndCjQ7aP7HJefqahFEuBiubec5j08=; b=2BcCxaxNRSFHLmG0N4cIxzZa98Q3C9wp71K/ERLhsbyo/1uKurISkkAOutnvBWrlUQ h+jd3XAmujnuxzWNzdbj75eOQBKO2377ULkRLYQ5YWkl9OlAMTT4YKjv8K4OsSPVVTq4 8ULUEE39/AbzECqh4NBsK3ohbTDL2yB4b7XLctibU0JwtW2lCTp/3WesibNL02Ce4so+ GfYGEu0C+K2rYU89gJOk1rPQKbnjz35t22uf51e9MewfEZ0cirJUxu40/MhWW6/4WzbT QEaS39qTrZiQtFnDq/lOLCVDZ63poHJVKHTW0TlHtIWrovtk29tsnXtLhS6bXSwuhM/j VzHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2Sm2TzUdkC6hw1ndCjQ7aP7HJefqahFEuBiubec5j08=; b=eQyztBBLWlo/OPO7qP3BqEybuZBUILHzw7kVki7jqar8wHydd9Y9MoHUAeyQK2dS+m 0KkWIEbG5+7V/S7BxMo6KzFC0aSt3uk+YB5gHA/BQbO7H2jfAQ4f+gUEa911V1yi+6Z5 r5QywnSftn3NH28NH/ffm/REG46z97KxyI0viw+SdMG/viifWbsXP3xEsrWRODJOoajR wnDrW5N755ohApM909XW3NL7b7Qqp3Bq8h602Sjfs0XKTIIcajHjLKIzhwAAMMCyP5BP AQLtJLxxWTs1in98ez6WvrAA78DcwTXMJm/JThkPyJJywccX00J488LCZm16vUoZRjmH LqYQ== X-Gm-Message-State: AGi0Pube8h0pCBYBgmfLntS2wzdlfCwcuAX7rUtNIoWPB5lo539oOyC9 rfrw5DIyJV3kOtMQXQphjhw2+Q== X-Received: by 2002:a63:1053:: with SMTP id 19mr17941569pgq.60.1586789268356; Mon, 13 Apr 2020 07:47:48 -0700 (PDT) Received: from Smcdef-MBP.lan ([103.136.220.73]) by smtp.gmail.com with ESMTPSA id g185sm2981601pfb.6.2020.04.13.07.47.44 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 13 Apr 2020 07:47:47 -0700 (PDT) From: Muchun Song To: tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, x86@kernel.org, mingo@kernel.org Cc: peterz@infradead.org, shile.zhang@linux.alibaba.com, linux-kernel@vger.kernel.org, Muchun Song Subject: [PATCH] x86/unwind: Make some variables static Date: Mon, 13 Apr 2020 22:47:27 +0800 Message-Id: <20200413144727.51258-1-songmuchun@bytedance.com> X-Mailer: git-send-email 2.21.0 (Apple Git-122) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The variables are local to the source and do not need to be in global scope, so make them static. Signed-off-by: Muchun Song --- arch/x86/kernel/unwind_orc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/kernel/unwind_orc.c b/arch/x86/kernel/unwind_orc.c index e9cc182aa97ee..0dbabc469ce2d 100644 --- a/arch/x86/kernel/unwind_orc.c +++ b/arch/x86/kernel/unwind_orc.c @@ -16,11 +16,11 @@ 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 int *cur_orc_ip_table = __start_orc_unwind_ip; +static struct orc_entry *cur_orc_table = __start_orc_unwind; -unsigned int lookup_num_blocks; -bool orc_init; +static unsigned int lookup_num_blocks; +static bool orc_init; static inline unsigned long orc_ip(const int *ip) { -- 2.11.0