From mboxrd@z Thu Jan 1 00:00:00 1970 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=-9.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, 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 022BAC47255 for ; Tue, 12 May 2020 02:23:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D4B04206D3 for ; Tue, 12 May 2020 02:23:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728482AbgELCX1 (ORCPT ); Mon, 11 May 2020 22:23:27 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:60840 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727942AbgELCXZ (ORCPT ); Mon, 11 May 2020 22:23:25 -0400 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id C6C35A7F089D56802555; Tue, 12 May 2020 10:23:22 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Tue, 12 May 2020 10:23:15 +0800 From: Samuel Zou To: , , CC: , , Samuel Zou Subject: [PATCH -next] ARM: zx: Make zx_smp_prepare_cpus static Date: Tue, 12 May 2020 10:29:21 +0800 Message-ID: <1589250561-106088-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 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/arm/mach-zx/platsmp.c:41:13: warning: symbol 'zx_smp_prepare_cpus' was not declared. The zx_smp_prepare_cpus has only call site within platsmp.c It should be static Fixes: 71bc724300e6 ("ARM: zx: enable SMP and hotplug for zx296702") Reported-by: Hulk Robot Signed-off-by: Samuel Zou --- arch/arm/mach-zx/platsmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-zx/platsmp.c b/arch/arm/mach-zx/platsmp.c index d4e1d37..43a33ea 100644 --- a/arch/arm/mach-zx/platsmp.c +++ b/arch/arm/mach-zx/platsmp.c @@ -38,7 +38,7 @@ static void __iomem *pcu_base; static void __iomem *matrix_base; static void __iomem *scu_base; -void __init zx_smp_prepare_cpus(unsigned int max_cpus) +static void __init zx_smp_prepare_cpus(unsigned int max_cpus) { struct device_node *np; unsigned long base = 0; -- 2.6.2