Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2349460ybk; Mon, 11 May 2020 19:26:08 -0700 (PDT) X-Google-Smtp-Source: APiQypL2pvzTIh0MJtsG59EiEdhZY7rBeFFAGwHiF8lDj8tQ+Anf+eMI8RfJcdvazJ318Jyi99tO X-Received: by 2002:a17:906:30c3:: with SMTP id b3mr16219264ejb.126.1589250368830; Mon, 11 May 2020 19:26:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589250368; cv=none; d=google.com; s=arc-20160816; b=02u0KAQB3Upq/qLr/YnjjaLzyMUaqOkQ2XmSRttCVK8/vbP/vOzLmfRV3tl3IySUim ahd9RbsOT/VfeZqmvzuzlHTqSUQLMQMO130anLMrvO0tijOftNnYB6nXf2lMyneAbYrb IkxblPUSJQyR9o038leKxfk+M8BpjYUyjMZI5dVg/FIkrBkeScHiuykP6GytEhgzfdWo Mv7+XZgt8yiBtzt/25FrATItsChxAkzwYGknGr9s2oNWu7YZ5L19DKmX+QX1v2iuYtu/ WyGo5CgFQ5z0ZdJg9D7XEyElmemQp5lSNTVPlDBfJ+vSmecbjF+Qn+ThapQhpYnYw1v8 SxNA== 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=1kd0gDlp8o4Dz55hkUD5pXP2AfgWGV2cbc0INjdQJ0E=; b=eOlfJ9NnDze0WLeguG1VVeWw7W+pCABcAuR6zHyKy5ujhQoD2YoVdZkIFWdHFi3UmM IB98KolBrpTEiK8KenTrzuEo1t8SyDtSwdlwCi4m/7cDGkwpvcrYPSsfMlU9bNg3Rbi/ 6i2NVi4T1nCwaZJUCzCjyfbSpdl/bmPaxFqxrzx2TXvfZMD2fZJ4FB9GUbdpx5wGwf5k LIq3/q/flA/tBd6WOmy0PWD91KVBMoNyl3sPb6Xdngra6Ha61Ddt46+HbLIdO5XxUtUa /+NX8owP0eslxaMKXtUw8xRzvl4LdGwrl78oTYe0QrDxYNv6np/rW3kYXYzn4dTKSUYH su5A== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u8si6974052eds.295.2020.05.11.19.25.45; Mon, 11 May 2020 19:26:08 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728408AbgELCX1 (ORCPT + 99 others); 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