From patchwork Tue May 11 06:46:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zou Wei X-Patchwork-Id: 12250755 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=-17.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT 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 5024CC433B4 for ; Tue, 11 May 2021 11:42:00 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BA77D610F7 for ; Tue, 11 May 2021 11:41:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BA77D610F7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=MhEsK5vazkLXDO0sPy4p+EwKfSwlBmmVJttG6qIY/Zs=; b=nkwPOQDT72uXe/i+g/WhlXY+i3 nkV4EFzZsNcb3Cr8kAeIyBVAyeJsG9j5mbunNDhPpRKjQoLLWNRlTFUpUTLAMfdQ8kZ/o1Wj/2Feo yDt8gIKVEQSDTLxrgMBI6qFeS2e04qTEpGgSn1EIyJTvx0icmfxPikv6Bu9JqRIgX0TOVx0hhSujt chuAUso5WQOmHmdkAHADlDsB2xAX9jFLybX4Mr+njtFTl6x1gMSZGZL8Vl0rTyylAPUTXejWpu9IK SBQ2p0iYcf6a3V83AsJfX57PLymX2KXRsLI0xq5X/h/X5GrRSV4GEhQJ/rM3u9LSZH8OuubVUVF8u VuZNYnzg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lgQkp-00HAkM-DJ; Tue, 11 May 2021 11:40:47 +0000 Received: from [2607:7c80:54:e::133] (helo=bombadil.infradead.org) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgLtd-00GPq2-AJ for linux-arm-kernel@desiato.infradead.org; Tue, 11 May 2021 06:29:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Type:MIME-Version:Message-ID: Date:Subject:CC:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:In-Reply-To:References; bh=jGz5NVU61IAE5jo+NCVzw3nG54UTEKw1hjzNyxButag=; b=xqi1sVx7k6Yi0/R3wUh3ug+cyU PLh3ZHDbbRjYDkFoGliW+i2dGbGMLwiGbGKcUOd7OvD7fSFGt0pSOXywrOvuqGa+yyRC+xLOTJ+1k tJ++Rv45nmrSeoL7lF6tmO/M8ts8ZqG/43qH1ZA78rBtmRwHk6LECmXZUjTiKL8GPTfeEAgCv9Vmv g13diHhGig0iMFMN8lOqvW3tkcO3N4QkMaGczdyl8eRkj8zxddWXw+Onj7ULEqyHcU6ketrf0QHrk Ixv1MufGJp1zQfzk6WIZ5Xt3XkYFG+yo+RlLJUG2pER6HNqRQZoJO/zdrid+6HEMDvREh2kSu5yQk 2BBSBkkQ==; Received: from szxga04-in.huawei.com ([45.249.212.190]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lgLta-009Ktg-MA for linux-arm-kernel@lists.infradead.org; Tue, 11 May 2021 06:29:32 +0000 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FfScn5vZFz1BK27; Tue, 11 May 2021 14:26:49 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.498.0; Tue, 11 May 2021 14:29:21 +0800 From: Zou Wei To: , , , CC: , , Zou Wei Subject: [PATCH -next] clocksource/drivers/arm_arch_timer: Make symbol 'arch_timer_rate1' static Date: Tue, 11 May 2021 14:46:23 +0800 Message-ID: <1620715583-107670-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210510_232930_916893_3B9CCCDA X-CRM114-Status: UNSURE ( 9.89 ) X-CRM114-Notice: Please train this message. X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210510_232930_916893_3B9CCCDA X-CRM114-Status: UNSURE ( 6.51 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The sparse tool complains as follows: drivers/clocksource/arm_arch_timer.c:67:5: warning: symbol 'arch_timer_rate1' was not declared. Should it be static? This symbol is not used outside of arm_arch_timer.c, so marks it static. Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/clocksource/arm_arch_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/arm_arch_timer.c b/drivers/clocksource/arm_arch_timer.c index fe1a826..800aaa9 100644 --- a/drivers/clocksource/arm_arch_timer.c +++ b/drivers/clocksource/arm_arch_timer.c @@ -64,7 +64,7 @@ struct arch_timer { #define to_arch_timer(e) container_of(e, struct arch_timer, evt) static u32 arch_timer_rate __ro_after_init; -u32 arch_timer_rate1 __ro_after_init; +static u32 arch_timer_rate1 __ro_after_init; static int arch_timer_ppi[ARCH_TIMER_MAX_TIMER_PPI] __ro_after_init; static const char *arch_timer_ppi_names[ARCH_TIMER_MAX_TIMER_PPI] = {