Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1230269pxj; Sat, 12 Jun 2021 02:19:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6kNY7GHK3Aj9KwryUl8uXXETYsIJexcPZZd9/h5W1cyp1P3PQxgkcYQwpwT6iSmHP8mgJ X-Received: by 2002:aa7:cd42:: with SMTP id v2mr7833391edw.245.1623489540898; Sat, 12 Jun 2021 02:19:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623489540; cv=none; d=google.com; s=arc-20160816; b=hIhxUmktYOgDErU7LIjyLLuGu+swm5aZQE9Px0hagY81G0/S3dpt64Hw1tRthSwSmr FcAU/ucTJew/UZ2MBW1Ea2Hk5nUCIGKN4zuXGWW4eARw7/kD4tlyf/mXy2HfIpD4MMaD rJ+lzqchVkDOMN6TZ1xnAIgI2xPJq/TUVsasxz7b6v0Q5zZELRheod+0qk3WU0iSkxtM 0s8POrs1BJyTo2EbK27k+Eq5mfIgizgTeHU5Q0kAf26UiF7w5gzk+wxqHQQDLS2hF0Nc PeQku047uuU68BiEQZ4Hn38K73e/bPvb5qqMprBeCQX/PF1+1sapJFPzEswS27cx7IB/ U4gw== 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=hkPOiVp268Bl25Goz351ifmMrl5vG3nmZlZQqJNIfBE=; b=QIMO/XsGxgD+pPNkYOsP5PxivQooPCJ7NWP2VKk03QhNbNHaZjC3W/ECO4CMbkdabs hWU0BxmxYEaFhE5g9AiO/j2CAOg/08dalTAGkQYgYV9XynTK+wZjN1kKfJb9b0fYSAkr gR9g3Eu+dGI8ECAC2lvuUCn2DC7fT9Z0EFGv3AmdxI4vop8TycXewJFDi12ZWCVo+wPP KnPmAZ7Hd8XGfMDoEsWMjUBFWarMAQamzc7aTds1FsHAgFpRdQCwrSLPlpVfEHEWw6XQ DOEnqMzSAgJ83GUz/ieXTBhqqBZy6saUVUpT8ZiHNQnkW7bkGa4/lH9p0SaPlNirbpZw QBIw== 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 w2si3617854edc.369.2021.06.12.02.18.14; Sat, 12 Jun 2021 02:19:00 -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 S230095AbhFLJLH (ORCPT + 99 others); Sat, 12 Jun 2021 05:11:07 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:9084 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229819AbhFLJLH (ORCPT ); Sat, 12 Jun 2021 05:11:07 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4G2Bdy1xLMzZcHN; Sat, 12 Jun 2021 17:06:14 +0800 (CST) Received: from dggemi762-chm.china.huawei.com (10.1.198.148) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Sat, 12 Jun 2021 17:08:53 +0800 Received: from linux-lmwb.huawei.com (10.175.103.112) by dggemi762-chm.china.huawei.com (10.1.198.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Sat, 12 Jun 2021 17:08:53 +0800 From: Zou Wei To: , , CC: , , Zou Wei Subject: [PATCH -next] clocksource/drivers/arm_global_timer: Make symbol 'gt_clk_rate_change_nb' static Date: Sat, 12 Jun 2021 17:27:26 +0800 Message-ID: <1623490046-37972-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-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggemi762-chm.china.huawei.com (10.1.198.148) 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_global_timer.c:54:23: warning: symbol 'gt_clk_rate_change_nb' was not declared. Should it be static? This symbol is not used outside of arm_global_timer.c, so marks it static. Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/clocksource/arm_global_timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clocksource/arm_global_timer.c b/drivers/clocksource/arm_global_timer.c index 60a8047..68b1d14 100644 --- a/drivers/clocksource/arm_global_timer.c +++ b/drivers/clocksource/arm_global_timer.c @@ -51,7 +51,7 @@ * the units for all operations. */ static void __iomem *gt_base; -struct notifier_block gt_clk_rate_change_nb; +static struct notifier_block gt_clk_rate_change_nb; static u32 gt_psv_new, gt_psv_bck, gt_target_rate; static int gt_ppi; static struct clock_event_device __percpu *gt_evt; -- 2.6.2