From patchwork Thu Sep 1 00:45:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jinjie Ruan X-Patchwork-Id: 12961607 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 655A0ECAAD4 for ; Thu, 1 Sep 2022 00:50:32 +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: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:In-Reply-To:References: List-Owner; bh=/ILb6hUGv5fExLISsPO7vgyeqasHdq5K5Uvbh7mYSas=; b=ttbC8V0nhI+WeD aJrIDQ0T5rat5yHryzhvH4J4CjpvWMEDL0+3c9OYi67CMWb0wAdymChxg+rhPQVHUXmWwP9ZMll+U e1kWHHe3LetcvPq+p0aXauTYBZypnU44C867AnWIChgWLWRt2GHJwwX3P7boAvcp8HVwRVByidfRt N/zHtnOfrK3yUbGix7JaUD5hawA5LTtx19wZFIGex6zog/3UySg35TGAn6xp3HIwANci61BVtsQHt JHEdUhwGA1xvBqvb7sjURP9hnfkF4AFLUbU/kUpGQYZts3We3dLdxNxJR/JytE4oWWzSEmFmGPQO6 GcYl0Y09UCqNSsLC5tgQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oTYOa-008oGv-Hp; Thu, 01 Sep 2022 00:49:24 +0000 Received: from szxga03-in.huawei.com ([45.249.212.189]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oTYOS-008oEu-IM for linux-arm-kernel@lists.infradead.org; Thu, 01 Sep 2022 00:49:18 +0000 Received: from kwepemi500008.china.huawei.com (unknown [172.30.72.57]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4MJ2SK28mxzHnVx; Thu, 1 Sep 2022 08:47:13 +0800 (CST) Received: from huawei.com (10.67.175.83) 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; Thu, 1 Sep 2022 08:49:00 +0800 From: ruanjinjie To: , , , CC: Subject: [PATCH -next] ARM: mmp: Make mmp2_resource_gpio static Date: Thu, 1 Sep 2022 08:45:24 +0800 Message-ID: <20220901004524.81383-1-ruanjinjie@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.67.175.83] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemi500008.china.huawei.com (7.221.188.139) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220831_174916_848199_BA217E8D X-CRM114-Status: GOOD ( 10.07 ) 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 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,