From nobody Sat Apr 11 02:18:39 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 19DCEC25B08 for ; Wed, 17 Aug 2022 08:18:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234820AbiHQISO (ORCPT ); Wed, 17 Aug 2022 04:18:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235003AbiHQISG (ORCPT ); Wed, 17 Aug 2022 04:18:06 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50F036AA06 for ; Wed, 17 Aug 2022 01:18:02 -0700 (PDT) Received: from dggpemm500021.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4M715W64QtzkWRY; Wed, 17 Aug 2022 16:14:39 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggpemm500021.china.huawei.com (7.185.36.109) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 17 Aug 2022 16:18:00 +0800 Received: from huawei.com (10.67.174.169) by dggpemm500001.china.huawei.com (7.185.36.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 17 Aug 2022 16:18:00 +0800 From: Chen Lifu To: , , , , , CC: Subject: [PATCH -next] ARM: mmp: Make some symbols static Date: Wed, 17 Aug 2022 16:14:20 +0800 Message-ID: <20220817081420.2106248-1-chenlifu@huawei.com> X-Mailer: git-send-email 2.37.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.67.174.169] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" These symbols pxa168_usb_phy_resources, pxa168_u2o_resources, pxa168_u2oehci_resources and pxa168_u2ootg_resources are not used outside of arch/arm/mach-mmp/devices.c, so mark them static. Fixes the following sparse warning: arch/arm/mach-mmp/devices.c:241:17: warning: symbol 'pxa168_usb_phy_resourc= es' was not declared. Should it be static? arch/arm/mach-mmp/devices.c:262:17: warning: symbol 'pxa168_u2o_resources' = was not declared. Should it be static? arch/arm/mach-mmp/devices.c:297:17: warning: symbol 'pxa168_u2oehci_resourc= es' was not declared. Should it be static? arch/arm/mach-mmp/devices.c:324:17: warning: symbol 'pxa168_u2ootg_resource= s' was not declared. Should it be static? Reported-by: kernel test robot Signed-off-by: Chen Lifu --- arch/arm/mach-mmp/devices.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/mach-mmp/devices.c b/arch/arm/mach-mmp/devices.c index 79f4a2aa5475..9968239d8041 100644 --- a/arch/arm/mach-mmp/devices.c +++ b/arch/arm/mach-mmp/devices.c @@ -236,11 +236,11 @@ void pxa_usb_phy_deinit(void __iomem *phy_reg) =20 #if IS_ENABLED(CONFIG_USB_SUPPORT) static u64 __maybe_unused usb_dma_mask =3D ~(u32)0; =20 #if IS_ENABLED(CONFIG_PHY_PXA_USB) -struct resource pxa168_usb_phy_resources[] =3D { +static struct resource pxa168_usb_phy_resources[] =3D { [0] =3D { .start =3D PXA168_U2O_PHYBASE, .end =3D PXA168_U2O_PHYBASE + USB_PHY_RANGE, .flags =3D IORESOURCE_MEM, }, @@ -257,11 +257,11 @@ struct platform_device pxa168_device_usb_phy =3D { } }; #endif /* CONFIG_PHY_PXA_USB */ =20 #if IS_ENABLED(CONFIG_USB_MV_UDC) -struct resource pxa168_u2o_resources[] =3D { +static struct resource pxa168_u2o_resources[] =3D { /* regbase */ [0] =3D { .start =3D PXA168_U2O_REGBASE + U2x_CAPREGS_OFFSET, .end =3D PXA168_U2O_REGBASE + USB_REG_RANGE, .flags =3D IORESOURCE_MEM, @@ -292,11 +292,11 @@ struct platform_device pxa168_device_u2o =3D { } }; #endif /* CONFIG_USB_MV_UDC */ =20 #if IS_ENABLED(CONFIG_USB_EHCI_MV_U2O) -struct resource pxa168_u2oehci_resources[] =3D { +static struct resource pxa168_u2oehci_resources[] =3D { [0] =3D { .start =3D PXA168_U2O_REGBASE, .end =3D PXA168_U2O_REGBASE + USB_REG_RANGE, .flags =3D IORESOURCE_MEM, }, @@ -319,11 +319,11 @@ struct platform_device pxa168_device_u2oehci =3D { .resource =3D pxa168_u2oehci_resources, }; #endif =20 #if IS_ENABLED(CONFIG_USB_MV_OTG) -struct resource pxa168_u2ootg_resources[] =3D { +static struct resource pxa168_u2ootg_resources[] =3D { /* regbase */ [0] =3D { .start =3D PXA168_U2O_REGBASE + U2x_CAPREGS_OFFSET, .end =3D PXA168_U2O_REGBASE + USB_REG_RANGE, .flags =3D IORESOURCE_MEM, --=20 2.37.1