[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190727.141812.424056483851039132.davem@davemloft.net>
Date: Sat, 27 Jul 2019 14:18:12 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: natechancellor@...il.com
Cc: iyappan@...amperecomputing.com, keyur@...amperecomputing.com,
quan@...amperecomputing.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, skunberg.kelsey@...il.com
Subject: Re: [PATCH] drivers: net: xgene: Move status variable declaration
into CONFIG_ACPI block
From: Nathan Chancellor <natechancellor@...il.com>
Date: Fri, 26 Jul 2019 09:20:37 -0700
> When CONFIG_ACPI is unset (arm allyesconfig), status is unused.
>
> drivers/net/ethernet/apm/xgene/xgene_enet_xgmac.c:383:14: warning:
> unused variable 'status' [-Wunused-variable]
> acpi_status status;
> ^
> drivers/net/ethernet/apm/xgene/xgene_enet_sgmac.c:440:14: warning:
> unused variable 'status' [-Wunused-variable]
> acpi_status status;
> ^
> drivers/net/ethernet/apm/xgene/xgene_enet_hw.c:697:14: warning: unused
> variable 'status' [-Wunused-variable]
> acpi_status status;
> ^
>
> Move the declaration into the CONFIG_ACPI block so that there are no
> compiler warnings.
>
> Fixes: 570d785ba46b ("drivers: net: xgene: Remove acpi_has_method() calls")
> Signed-off-by: Nathan Chancellor <natechancellor@...il.com>
Applied.
Powered by blists - more mailing lists