From patchwork Wed Sep 14 06:59:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jinjie Ruan X-Patchwork-Id: 12975690 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CFF87C6FA89 for ; Wed, 14 Sep 2022 07:01:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=W8m4Ul4mrbYzNx/BrXAD31+2OmR1vLb66spmFC9lTL4=; b=t/dCOgAkQ0bXg8 /YZMlVxVkHPfpqooZs7t2TwH9/2UjZjiuQX6h6qjnWLh+WKQRand3Oa01CsAOmH239U5wijEtJSEQ RcWzIv6rSqcKLDpzyGLrz+b3txo1NIxRHrKWxoltMcRH5JltQP/qrtTHZ4xOp8j80Df2u7FOWsMBk +MqTX3Jp2Q8ZeIJux2Blroqh8zCVg0OZTYNPPG9dFs8jwsjHsekEzE2GypZ14kdHz4mcHmToTt8G3 cRfi2mWP6z7+dekV0+lutuF3l6BHS3jmujl3cuj/HFUWtGwdGNhPW+Nez53fNQ1euIBUBwuo76d7y y7HHCOiLMPbX7dquVACg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oYMNX-0096md-Lp; Wed, 14 Sep 2022 07:00:11 +0000 Received: from szxga01-in.huawei.com ([45.249.212.187]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oYMNS-0096im-Dj for linux-arm-kernel@lists.infradead.org; Wed, 14 Sep 2022 07:00:08 +0000 Received: from kwepemi500008.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4MSB1w5hJnzlVkl; Wed, 14 Sep 2022 14:56:04 +0800 (CST) Received: from kwepemi500008.china.huawei.com (7.221.188.139) by kwepemi500008.china.huawei.com (7.221.188.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Wed, 14 Sep 2022 14:59:55 +0800 Received: from kwepemi500008.china.huawei.com ([7.221.188.139]) by kwepemi500008.china.huawei.com ([7.221.188.139]) with mapi id 15.01.2375.024; Wed, 14 Sep 2022 14:59:55 +0800 From: ruanjinjie To: "lkundrak@v3.sk" , "linux@armlinux.org.uk" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" CC: ruanjinjie Subject: =?eucgb2312_cn?b?tPC4tDogW1BBVENIIC1uZXh0XSBBUk06IG1tcDogTWFrZSBtbXAyX3Jl?= =?eucgb2312_cn?b?c291cmNlX2dwaW8gc3RhdGlj?= Thread-Topic: [PATCH -next] ARM: mmp: Make mmp2_resource_gpio static Thread-Index: AQHYvZygDMXA9V5jW0GdHnKMJzF6Na3ek86g Date: Wed, 14 Sep 2022 06:59:55 +0000 Message-ID: References: <20220901004524.81383-1-ruanjinjie@huawei.com> In-Reply-To: <20220901004524.81383-1-ruanjinjie@huawei.com> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.67.109.254] MIME-Version: 1.0 X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220914_000006_707163_827758C0 X-CRM114-Status: GOOD ( 10.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Ping. -----邮件原件----- 发件人: ruanjinjie 发送时间: 2022年9月1日 8:45 收件人: lkundrak@v3.sk; linux@armlinux.org.uk; linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org 抄送: ruanjinjie 主题: [PATCH -next] ARM: mmp: Make mmp2_resource_gpio static The symbol is not used outside of the file, so mark it static. Fixes the following warning: ./arch/arm/mach-mmp/mmp2.c:157:17: warning: symbol 'mmp2_resource_gpio' was not declared. Should it be static? Signed-off-by: ruanjinjie --- arch/arm/mach-mmp/mmp2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-mmp/mmp2.c b/arch/arm/mach-mmp/mmp2.c index bbc4c2274de3..696bc1856e6d 100644 --- a/arch/arm/mach-mmp/mmp2.c +++ b/arch/arm/mach-mmp/mmp2.c @@ -154,7 +154,7 @@ MMP2_DEVICE(asram, "asram", -1, NONE, 0xe0000000, 0x4000); /* 0xd1000000 ~ 0xd101ffff is reserved for secure processor */ MMP2_DEVICE(isram, "isram", -1, NONE, 0xd1020000, 0x18000); -struct resource mmp2_resource_gpio[] = { +static struct resource mmp2_resource_gpio[] = { { .start = 0xd4019000, .end = 0xd4019fff, -- 2.25.1