Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp2144799rwb; Sat, 8 Oct 2022 03:05:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4I6j+UL90pNbflWQKWT8I4jay7OK7k1UZolHV2qnG22DoscRGieJMg2Z+/TgpR3iF93K8V X-Received: by 2002:a63:2d05:0:b0:460:55e3:df91 with SMTP id t5-20020a632d05000000b0046055e3df91mr1600586pgt.177.1665223533866; Sat, 08 Oct 2022 03:05:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665223533; cv=none; d=google.com; s=arc-20160816; b=T77ntuiPsotuKp3Y4cAiFSyMnxsWdldBkM8ZOOgpjJPtzA04QkilOKqaMBK20a9QsB KyOuzRTO8LzjgMYaYOimQP4lweDSLPANCQk4W1mYYgs4OEcAkaqdXnaF9zUQU594zFCY gZ5zgdhvH66X7zJoH+8Fq37l/5yLZNHbf5rl9NM+2aW40aFty9tct68wBBMkFgV9dfct dPILLZKmtaR+lgwcppsf00FVaGyO9ohP8xaUO1TAtUnyTHFgZpLYoHXNCtn85cW78wjs Rcxj9l6pmB3RhoissPSYD7KRowfYUs3WxrHhfVDfRnD49g+GmZvwwu8d9J54a6jrGe4/ 04xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:subject:user-agent:mime-version:date:message-id; bh=j+lj2BHFjV1wJdxFSbrzqv1VSW+28h1NvTPeeTzu8AU=; b=OrjmgCgF4qWAGw8MzIzbQoZa0HNI7vFCdVpdQI9dgDz4cYDIl9wkTnj4LV2pXtjQ+M 2xKO/rPOC1CGt9pFy1JJl9PEBNpk8rTa4emeu2yWB8/DlO211e8X1NwL0o62zjnWgh30 z56Qi5CKaB1yaVXU2XlOiBed0B659D3x/HKodD5jT2ajoDVpa0GxW/XNhif9fzwf+8WG JazGw8l4MSklt0mWCIcKJDK+wqRR8PRNoEN9yvQG4sZh/xsKrA+MG+S15L92cOkK9DQc J2+hrojQ3a6Dh2haD/TB8Ta4P6Dut2QZ9hP0ooeonxiD3mPw9Ls3qdoWt6NT3EyaX7o0 mEXQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h12-20020a170902f70c00b0018010c3d7e3si4278096plo.404.2022.10.08.03.05.15; Sat, 08 Oct 2022 03:05:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229791AbiJHIpU (ORCPT + 99 others); Sat, 8 Oct 2022 04:45:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbiJHIpS (ORCPT ); Sat, 8 Oct 2022 04:45:18 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84F2633414 for ; Sat, 8 Oct 2022 01:45:17 -0700 (PDT) Received: from dggpemm500022.china.huawei.com (unknown [172.30.72.53]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4MkzFz1GfxzkXw1; Sat, 8 Oct 2022 16:42:47 +0800 (CST) Received: from dggpemm500001.china.huawei.com (7.185.36.107) by dggpemm500022.china.huawei.com (7.185.36.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Sat, 8 Oct 2022 16:45:09 +0800 Received: from [10.67.111.195] (10.67.111.195) 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.31; Sat, 8 Oct 2022 16:45:08 +0800 Message-ID: <5fc5644c-6dd8-8a9e-bfcb-f959d32546c3@huawei.com> Date: Sat, 8 Oct 2022 16:45:08 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH -next] ARM: mmp: Make some symbols static To: , , , , , References: <20220817081420.2106248-1-chenlifu@huawei.com> From: chenlifu In-Reply-To: <20220817081420.2106248-1-chenlifu@huawei.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [10.67.111.195] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm500001.china.huawei.com (7.185.36.107) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 在 2022/8/17 16:14, Chen Lifu 写道: > 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_resources' 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_resources' was not declared. Should it be static? > arch/arm/mach-mmp/devices.c:324:17: warning: symbol 'pxa168_u2ootg_resources' 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) > > #if IS_ENABLED(CONFIG_USB_SUPPORT) > static u64 __maybe_unused usb_dma_mask = ~(u32)0; > > #if IS_ENABLED(CONFIG_PHY_PXA_USB) > -struct resource pxa168_usb_phy_resources[] = { > +static struct resource pxa168_usb_phy_resources[] = { > [0] = { > .start = PXA168_U2O_PHYBASE, > .end = PXA168_U2O_PHYBASE + USB_PHY_RANGE, > .flags = IORESOURCE_MEM, > }, > @@ -257,11 +257,11 @@ struct platform_device pxa168_device_usb_phy = { > } > }; > #endif /* CONFIG_PHY_PXA_USB */ > > #if IS_ENABLED(CONFIG_USB_MV_UDC) > -struct resource pxa168_u2o_resources[] = { > +static struct resource pxa168_u2o_resources[] = { > /* regbase */ > [0] = { > .start = PXA168_U2O_REGBASE + U2x_CAPREGS_OFFSET, > .end = PXA168_U2O_REGBASE + USB_REG_RANGE, > .flags = IORESOURCE_MEM, > @@ -292,11 +292,11 @@ struct platform_device pxa168_device_u2o = { > } > }; > #endif /* CONFIG_USB_MV_UDC */ > > #if IS_ENABLED(CONFIG_USB_EHCI_MV_U2O) > -struct resource pxa168_u2oehci_resources[] = { > +static struct resource pxa168_u2oehci_resources[] = { > [0] = { > .start = PXA168_U2O_REGBASE, > .end = PXA168_U2O_REGBASE + USB_REG_RANGE, > .flags = IORESOURCE_MEM, > }, > @@ -319,11 +319,11 @@ struct platform_device pxa168_device_u2oehci = { > .resource = pxa168_u2oehci_resources, > }; > #endif > > #if IS_ENABLED(CONFIG_USB_MV_OTG) > -struct resource pxa168_u2ootg_resources[] = { > +static struct resource pxa168_u2ootg_resources[] = { > /* regbase */ > [0] = { > .start = PXA168_U2O_REGBASE + U2x_CAPREGS_OFFSET, > .end = PXA168_U2O_REGBASE + USB_REG_RANGE, > .flags = IORESOURCE_MEM, friendly ping ...