From patchwork Mon Oct 17 14:31:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 3480 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1485375wrs; Mon, 17 Oct 2022 07:38:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6XnsvwnLYqXiRr+PMVzV75yvm/aUs4TmOD8yjqWJuQ//J/ZeYaKtG0YYo0CT+FxMlWxLLh X-Received: by 2002:a17:907:b08:b0:78e:2f4c:882c with SMTP id h8-20020a1709070b0800b0078e2f4c882cmr8649047ejl.293.1666017502598; Mon, 17 Oct 2022 07:38:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666017502; cv=none; d=google.com; s=arc-20160816; b=iM+ZQGItX3Afs8Gra8agRj6aJ8ikH5RMDAahXvMHGYlO5TU78ssWHAjnhqteCjcric sa0udQIY57fEZvF8SHTW3LWqv75BMhygtPgqlFaurMbCWJBVnx9zNcYrxWkpuLtpGebQ UKC9nP4jI4dXVfjE9qIBx8okg+VeXtgQydgY+aibOeE4eU2bFJkPUsWwhoLbfFWAx4lY sktrfSl0zxbOlRhHhly15EWIkujKtGLevS03dpIFiRcxWjOHAa4GcpWgcr2LYPPaXntW bK3TgQE7HoK6HTQxbrYKPeu0BZLGN4n4+S4/PJGOtKiP0MmncYADlzz6wNgDWzU2MGEW E15w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=o1vuoWLh9v44oGvxqgENx+Nmjiw2B1fjs3Rt8xCgrIk=; b=USziCOFqNMpX9JSd0mD1I/MC/FdSMSx1zD5LzStJVJjKIWu1zDh+isHybf2eGUDC8c Jd5g9oMlw/WUXx1OEIl0mDAOEZTAS3RJo+2N3EVe5U9QU44RPZ6pwz+xCfTxKhwXQDS6 1NyFPyGRqoQ2+UECaLx64rHMR2SN4CCJkKreJIjEkXZZSTWKHYV7nDftcx7Cy/qqXZNA WVjZPnpBwLeb4RvRVurouT5Ia6NbLqHUQLJ2QlKbkeYdoeoQlca6pgbxWRyQQNhfWz1W 37jIUXnvXpZitLmPppSwaYRL0jraJKfiOkq4b8Bqht7exlomd0Ib1ew2jExptCl9bLlG R0LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=E4NRedXH; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ae8-20020a17090725c800b0077fd5b45e18si7913097ejc.929.2022.10.17.07.37.56; Mon, 17 Oct 2022 07:38:22 -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=@linutronix.de header.s=2020 header.b=E4NRedXH; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229572AbiJQObJ (ORCPT + 99 others); Mon, 17 Oct 2022 10:31:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229960AbiJQObI (ORCPT ); Mon, 17 Oct 2022 10:31:08 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15EAE659DE; Mon, 17 Oct 2022 07:31:05 -0700 (PDT) Date: Mon, 17 Oct 2022 14:31:02 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1666017063; 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: in-reply-to:in-reply-to:references:references; bh=o1vuoWLh9v44oGvxqgENx+Nmjiw2B1fjs3Rt8xCgrIk=; b=E4NRedXH2wU2cPOWvvx26if+JOXY4JfPjL2zaLtOnQRvWEGrEpKfm7XfD1UR+pugpY1oQR 7s0IeJ8cyVAauBzlzQ7FF59GBQbFQyhExjJRI6m0QfEgXpXTRlc+pY6THUIOiN4K8Zm9mJ 0VI1OFnzExj/tc4EKzytdruLM4L3w2ZL2/0QrBqbuAQb2MrSzW08Jbg6inHMcMkErJVJVA WiLlP8F1XQQODpWMOU3ZzzdOcMaeFmR4ndypMiOStV3xO1r/MPFT4FlCVbW4WFqb32794U bOo/4DTXozHR0o1ULg1JcET41rAOIkawCzDVdNnxOvwrSjLEB08otU8TkK3KXw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1666017063; 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: in-reply-to:in-reply-to:references:references; bh=o1vuoWLh9v44oGvxqgENx+Nmjiw2B1fjs3Rt8xCgrIk=; b=HJURYBK9KeHmrK+iWmO9FZdiBDeH/NiHRH0aSE3ri9WSRPYf9GTY+kgukKxrP6FA9fWPkz mhRVQogSpufMLuDQ== From: "tip-bot2 for Chen Lifu" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/cleanups] x86/tsc: Make art_related_clocksource static Cc: Chen Lifu , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20220823021821.3052159-1-chenlifu@huawei.com> References: <20220823021821.3052159-1-chenlifu@huawei.com> MIME-Version: 1.0 Message-ID: <166601706216.401.10492698208850639850.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746945968579057919?= X-GMAIL-MSGID: =?utf-8?q?1746945968579057919?= The following commit has been merged into the x86/cleanups branch of tip: Commit-ID: 3548eda8ae284d6d412d59f11cd20fc7df05362b Gitweb: https://git.kernel.org/tip/3548eda8ae284d6d412d59f11cd20fc7df05362b Author: Chen Lifu AuthorDate: Tue, 23 Aug 2022 10:18:21 +08:00 Committer: Thomas Gleixner CommitterDate: Mon, 17 Oct 2022 16:20:48 +02:00 x86/tsc: Make art_related_clocksource static The symbol is not used outside of the file, so mark it static. Fixes the following warning: arch/x86/kernel/tsc.c:53:20: warning: symbol 'art_related_clocksource' was not declared. Should it be static? Signed-off-by: Chen Lifu Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/r/20220823021821.3052159-1-chenlifu@huawei.com --- arch/x86/kernel/tsc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c index cafacb2..a78e73d 100644 --- a/arch/x86/kernel/tsc.c +++ b/arch/x86/kernel/tsc.c @@ -51,7 +51,7 @@ int tsc_clocksource_reliable; static u32 art_to_tsc_numerator; static u32 art_to_tsc_denominator; static u64 art_to_tsc_offset; -struct clocksource *art_related_clocksource; +static struct clocksource *art_related_clocksource; struct cyc2ns { struct cyc2ns_data data[2]; /* 0 + 2*16 = 32 */