Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1561558ybb; Thu, 9 Apr 2020 04:45:21 -0700 (PDT) X-Google-Smtp-Source: APiQypKzSzXGc5WEOYJ/nOfBvK3yNapAkO6XzApUgDMQLlFlEprIIEUkDr0cdCyCSJHv9qCtkAYX X-Received: by 2002:aca:ac09:: with SMTP id v9mr4853439oie.148.1586432721466; Thu, 09 Apr 2020 04:45:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586432721; cv=none; d=google.com; s=arc-20160816; b=cey3gCtWQvYEsiY//JCAMvbvODrifqAZbWa3WQ7wkaPX3G8uleQPoW3KhsCwGfycNC Npzp5GBD+QavF2HE7PlSlxozUWuMc3Z7A/Xm+PH55DNyzNwdkcP0Yycj60VyQvCeu3Uu rvWMaSeG68IdtkoRRrPSkNZ91VwFx/bfmyL5ev01TOZ4KmVwjhvkI9sq3iAvzupAiTNl kjGwxFqH5gPbSoo64EXLk+jnC8JTGTxOZSD7TnpiBgfol6dfcjtSFPdN8Cc64fpfoaNR qgIy6N5jNt51z7oftaEEDGyYqz+1r14buMqecCueLz8W4WO2jbEusTs+msMu6fg6bCtC lJ1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=54djjzgQwN9gsS2nLlRHukIdxhe7fTu0VnFh1/rEBz0=; b=I1ASepzbfZetMJe4LvWZ3lS3+lfFqnreb+zreKhV7lYBd9wSypyItXs/hxiKT7do/Y 5vDQOoxpDc4RQu6mpr4ZntIY5qgJa/ERNAUrO1ecif6eHYZMkf/czcBdWlkhkJlSK203 D790STzPKektpZjpdTGpIzfeqhr+TPvJ3vRyI7GWd6uxv/51cWopXmLA4THwkse5DTnI /heW4WwecMpJzZg2UIH8tZOBDFi89Wk5QteDz8kykT0bzkU4Gw49wOoR8chVpXPVX3RL 59TXyTQ241v3CB04nnAM+yEwzgbmhu9TIYuBuXVDVr85EV28P4k3E7AlOpZfE7XuA0Cu Sp3A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v17si2743589oth.156.2020.04.09.04.45.07; Thu, 09 Apr 2020 04:45:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726695AbgDILnG (ORCPT + 99 others); Thu, 9 Apr 2020 07:43:06 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:12632 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726502AbgDILnG (ORCPT ); Thu, 9 Apr 2020 07:43:06 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 6FEB96847F92ADA8CBD0; Thu, 9 Apr 2020 19:43:02 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Thu, 9 Apr 2020 19:42:53 +0800 From: Jason Yan To: , , , , , , , , , , , CC: Jason Yan Subject: [PATCH] x86/tsc: make art_related_clocksource static Date: Thu, 9 Apr 2020 19:41:22 +0800 Message-ID: <20200409114122.39056-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.17.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following sparse warning: arch/x86/kernel/tsc.c:52:20: warning: symbol 'art_related_clocksource' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan --- 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 fdd4c1078632..6550239a7fca 100644 --- a/arch/x86/kernel/tsc.c +++ b/arch/x86/kernel/tsc.c @@ -49,7 +49,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 */ -- 2.17.2