diff mbox series

[-next] ARM: mmp: Make mmp2_resource_gpio static

Message ID 20220901004524.81383-1-ruanjinjie@huawei.com (mailing list archive)
State New, archived
Headers show
Series [-next] ARM: mmp: Make mmp2_resource_gpio static | expand

Commit Message

Jinjie Ruan Sept. 1, 2022, 12:45 a.m. UTC
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 <ruanjinjie@huawei.com>
---
 arch/arm/mach-mmp/mmp2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jinjie Ruan Sept. 14, 2022, 7:19 a.m. UTC | #1
Ping.

On 2022/9/1 8:45, ruanjinjie wrote:
> 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 <ruanjinjie@huawei.com>
> ---
>  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,
diff mbox series

Patch

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,