Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3249386pxj; Mon, 10 May 2021 23:30:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQ78DkX5TPUKhXFOUtSAbAU0iz41pK8ZEXoy0VKsvxmBEF/cOZM3I4iJ8o+wlwqfJwcK2g X-Received: by 2002:a02:84a5:: with SMTP id f34mr25014465jai.50.1620714641532; Mon, 10 May 2021 23:30:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620714641; cv=none; d=google.com; s=arc-20160816; b=s3WbEbPrqfyk03M09/w1W+lvTxWthmBoFcAYShpaPrQ2JZFW2vpeigepdXlLOzPPk0 W1Ozp1d/KgBwzhI8PWRJ28mDhwPOj+zKs/SH1ORKIwdjkb8emqcxdRjdz9y3SOsrirGj 6D//eIEpejHzknscmpWcySm/0WJMmkeFt3PTX3azOMaXehWFMHUHXlT+fsnDAIFpP39J Suygm5eqDh/uBjYDk65oj+9gUFjq5Ug+IFYvs0bCCsQxajXa/eq4V6G2WsHehJbU/2ME 75zddqb3EZncKn/kh6ynGqiyT90f21iz/k6eIrtKm1MIrG5O6XDw7VnMlrGi8n1ZK2SN mSag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=jGz5NVU61IAE5jo+NCVzw3nG54UTEKw1hjzNyxButag=; b=MYNwswxep9HYg/VKHn7WIXKOJQ9dhr0MyIjtcc1M8dFIA54JfpWhAqyDXCCtbA7Dy6 6qZ77L6Jlwnt98GU0/OrCNoADd/UiysFq6xfoLsO+ApayWc1jXvqqxeDaY+C7JCcL5N2 r+Fs70erzeb4ay9VtBjHtBP5XXF1/vwc6pcuF9zlhrprRjBCZGT7GHlXwVIJXYblx6Za BINHFcYQ6pK6xnselTUyFFSFQucZqwHRp/Fo9mLInUQuAz8xtowM+zMo4Osgn48ZZGaN B67JmcNl7sPv+o8F050lMI4kOS4o7TP5yKTQhag0SdGcE8uCzkW7cs1lVGOuz9ZcV3hS r2vg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v13si2234841jal.64.2021.05.10.23.30.29; Mon, 10 May 2021 23:30:41 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230144AbhEKGag (ORCPT + 99 others); Tue, 11 May 2021 02:30:36 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2690 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229807AbhEKGag (ORCPT ); Tue, 11 May 2021 02:30:36 -0400 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 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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] = { -- 2.6.2